[MDEV-32559] Move alter table statements in spider init queries to be executed in the signal_ddl_recovery_done callback Created: 2023-10-24 Updated: 2024-01-18 Resolved: 2024-01-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Fix Version/s: | 10.6.17 |
| Type: | Task | Priority: | Critical |
| Reporter: | Yuchen Pei | Assignee: | Yuchen Pei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
According to monty's comment on This task is more relevant after the push of |
| Comments |
| Comment by Yuchen Pei [ 2023-10-24 ] | ||||||||||||||||||||
|
One concern with doing this is the breaking of the assumption that plugin_init() does and completes the plugin initialisation. There are about 280 lines between the call to plugin_init() and the call to ha_signal_ddl_recovery_done();. If any of these lines does things based on the assumption that the plugin initialisation is finished then things could break:
| ||||||||||||||||||||
| Comment by Yuchen Pei [ 2023-11-03 ] | ||||||||||||||||||||
|
A patch ready for review:
I also have a patch demonstrating the failure path resulting in plugin
| ||||||||||||||||||||
| Comment by Yuchen Pei [ 2023-11-08 ] | ||||||||||||||||||||
|
Hi serg, ptal thanks
| ||||||||||||||||||||
| Comment by Yuchen Pei [ 2024-01-10 ] | ||||||||||||||||||||
|
serg thanks for the review. Given your change 0930eb86cb00edb2ae285c3250ca51bae126e5e5 with overlapping purposes was applied to 10.6, I have rebased my patch to 10.6. PTAL thanks
| ||||||||||||||||||||
| Comment by Sergei Golubchik [ 2024-01-11 ] | ||||||||||||||||||||
|
in 7077d94f491a, please, reformat comments to match the comment style for the file you're changing. Then ok to push | ||||||||||||||||||||
| Comment by Yuchen Pei [ 2024-01-16 ] | ||||||||||||||||||||
|
Thanks for the review. After a quick grep still not entirely sure how a multiline comment should appear for int (*init)(void *); as the other fields all have short comments to the right. So I merged the comment to the right of this field into the comment above. | ||||||||||||||||||||
| Comment by Yuchen Pei [ 2024-01-18 ] | ||||||||||||||||||||
|
Pushed 931df937e9382248ab082e4b3abd8ed149d48cd4 to 10.6 (3 days ago) |