[MDEV-27111] atomic.rename_table test case fails on bb-10.6-MDEV-27022 branch Created: 2021-11-23 Updated: 2022-06-22 Resolved: 2021-12-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.6 |
| Fix Version/s: | 10.6.6, 10.7.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Thirunarayanan Balathandayuthapani | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
InnoDB fails to identify the tablespace after recovery in rename_table test case.
InnoDB removes the space id from deferred tablespace when name is being matched. I think defer tablespace should handle rename table in a better way |
| Comments |
| Comment by Thirunarayanan Balathandayuthapani [ 2021-11-23 ] | ||||||||||||
|
Patch is in bb-10.6- | ||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2021-11-26 ] | ||||||||||||
|
matthias reported the following issue:
| ||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2021-11-26 ] | ||||||||||||
|
I think there could be race condition between rename operation and fil_names_clear() written during checkpoint operation
If we do checkpoint(fil_names_clear) between these 2 operation then InnoDB will try to recover the table using old_name
| ||||||||||||
| Comment by Marko Mäkelä [ 2021-12-13 ] | ||||||||||||
|
| ||||||||||||
| Comment by Marko Mäkelä [ 2022-06-20 ] | ||||||||||||
|
For the record, before the fix of
With the fix of
I think that innodb_max_dirty_pages_pct=0 should increase the chances of hitting the |