[MDEV-27600] partition_debug fails with warnings "Table is open on rename new table" Created: 2022-01-24 Updated: 2023-11-23 Resolved: 2022-04-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.7.1 |
| Fix Version/s: | 10.7.4, 10.8.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael Widenius | Assignee: | Aleksey Midenkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debug build, -DEXTRA_DEBUG |
||
| Description |
|
parts.partition_debug fails with 2 warnings "Table: ./test/t1#P#p2 is open on rename new table2" This happens only in 10.7 (I could not repeat it with 10.6) when compiled with DBUG parts.partition_debug [ fail ] Found warnings/errors in server log file! A shorter test case, just for debugging: As a separate issue, I noticed that the code does try to rename files that does not exists:
|
| Comments |
| Comment by Michael Widenius [ 2022-01-24 ] |
|
Comment about this from Marko @ slack: |
| Comment by Michael Widenius [ 2022-03-04 ] |
|
Some suggestions of how to fix this: The error happens because in ddl_log_revert (), which does a rename, the table is still open. This is not allowed and could cause crashes and lost data for some engines. If we fail at convert_partition_5, then the table will not be closed and we have a request in the
|