[MDEV-32532] Assertion failure in ddl_log_increment_phase_no_lock upon partition operations with spider plugin loaded Created: 2023-10-20 Updated: 2023-11-30 Resolved: 2023-10-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Partitioning, Server, Storage Engine - Spider |
| Affects Version/s: | 10.10 |
| Fix Version/s: | 10.10.7, 10.11.6, 11.0.4, 11.1.3 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The failure started happening after this commit in 10.10:
|
| Comments |
| Comment by Elena Stepanova [ 2023-10-21 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It is also reproducible on bb-10.10-all-builders c9e5d725bb8c0d8eb28caf6bc766e946fc0cf8d7 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Yuchen Pei [ 2023-10-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The server restart seems to be needed for reproduction. If I do without restart then it passes:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Yuchen Pei [ 2023-10-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A mid-low level explanation of what happened: A low level function for getting a free entry which will be later
A higher level function that uses ddl_log_get_free_entry() in many
in (1): first_free (!= NULL (A)) is assigned to in (2): first_free becomes NULL (E) in (3):
in (4):
FYI monty | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2023-10-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The reason for the bug is that spider plugin does some ALTER TABLE commands before recovery is done. Anyway, the problem is that 'first_free' was not reset (as this was never assumed to be change before recovery). I have now fixed that for 10.10. 10.6 does not have this problem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2023-10-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Pushed to 10.10 |