tokudb: alter table... drop primary key doesn't properly rename tablespace files
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Invalid
|
Undecided
|
Unassigned | |||
5.6 |
Opinion
|
Undecided
|
Unassigned | |||
5.7 |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Please consider following table:
CREATE TABLE `BUG_DEMO` (
`id` int(11) NOT NULL,
`newcol` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1 ROW_FORMAT=
This is how tablespace files appear on filesystem:
[root@dbcache05 data]# ls -l _sbtest_BUG_DEMO_*
-rw-rw---- 1 mysql mysql 32768 Mar 10 13:07 _sbtest_
-rw-rw---- 1 mysql mysql 16384 Mar 10 13:07 _sbtest_
Now if we drop primary key via "alter table BUG_DEMO drop primary key", the tablespace files are left pointing to some temporary file names and are no longer easily identified:
-rw-rw---- 1 mysql mysql 32768 Mar 10 13:08 _sbtest_
-rw-rw---- 1 mysql mysql 16384 Mar 10 13:08 _sbtest_
Server version: 5.6.35-80.0-log
Tracking in https:/ /jira.percona. com/browse/ TDB-39, please login there to Percona JIRA and 'watch' for future updates. Marking it as opinion here as there is no other accurate matching state.