Bug #87761 | Alter table partitioning data directory complains about table name | ||
---|---|---|---|
Submitted: | 14 Sep 2017 18:15 | Modified: | 21 Sep 2017 16:02 |
Reporter: | Gregg Wonderly | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S4 (Feature request) |
Version: | 5.6.21 | OS: | Windows (Windows 7) |
Assigned to: | CPU Architecture: | Any | |
Tags: | directory, name, partition, smb |
[14 Sep 2017 18:15]
Gregg Wonderly
[20 Sep 2017 23:54]
MySQL Verification Team
Hi, Thanks for the report. I agree having more verbose errors would be a good thing. all best Bogdan
[21 Sep 2017 16:02]
Gregg Wonderly
Right now, MySQL does not support using alter table with 'data directory' in the partition declaration. This seems a bit short sighted. If partitioning can cause a restructure of the file usage and total number of partitions etc., then why can't 'data directory' explicitly indicate file paths to use? Additionally, we discovered that when using a UNC path for creating a table with partitions using DATA DIRECTORY paths, that MySQL has problems validating path components when part of the path structure does not exist. For example, with the \\FS8600\MySqlData\others\01sep path, if "others" does not exist yet, the path validation being used, starts trying to "create" \\FS8600 component as a directory, which fails and causes the abort of the create table. If the \\FS8600\MySqlData\others directories all exist, then the DATA DIRECTORY path works and mysql creates the 01sep directory and moves on successfully. It seems that the code which processes the error in creating \\FS8600\MySqlData\others\01sep maybe not trying to understand the differences between UNC paths and normal paths and is thus confused by the UNC string.