[MDEV-24382] Assertion `thd->mdl_context.is_lock_owner(MDL_key::TABLE, db, table_name, MDL_EXCLUSIVE)' failed in tdc_remove_table Created: 2020-12-09 Updated: 2021-05-03 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Locking, Sequences |
| Affects Version/s: | 10.5, 10.6 |
| Fix Version/s: | 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Michael Widenius |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | not-10.1, not-10.2, regression | ||
| Issue Links: |
|
||||||||
| Description |
|
Similar stack to
Leads to:
Bug confirmed present in: Bug (or feature/syntax) confirmed not present in: |
| Comments |
| Comment by Roel Van de Paar [ 2020-12-09 ] | ||||||||||||||||||||||
|
Repeating the last testcase in this bug in the CLI will make both 10.5 and 10.6 optimized builds hang
Will lead to:
Also seen (note killed):
Also confirmed 10.3 + 10.4 optimized are not affected by this hang. | ||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2021-04-28 ] | ||||||||||||||||||||||
|
This does not happen anymore, somewhere between 10.5.9 and now some happy patch fixed that. Added test case, to catch in case it happens again | ||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2021-04-29 ] | ||||||||||||||||||||||
|
Confirmed. Outcome is now;
Same result on 10.6.1 optimized build. | ||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2021-04-29 ] | ||||||||||||||||||||||
|
wlad Interestingly, 10.4.19 gives a different error code and different message:
Should I log a ticket for consolidation of the two? | ||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2021-04-29 ] | ||||||||||||||||||||||
|
Roel, that's your choice, but why you are asking me, I'm not a sequence guy..
All introduced by the same person , on the same day
May there is a logic in it, and it makes sense to ask someone who created it, first. | ||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2021-04-29 ] | ||||||||||||||||||||||
|
I am re-opening this bug, as something is not clear with the 'fix', as follows: Simply executing DROP SEQUENCE t; against recent (all build this week) 10.3, 10.4, 10.5 and 10.6 instances always returns the same error:
However, when the testcase above is used, the outcomes are different between 10.3/10.4 versus 10.5/10.6: (The following outcomes assume that the full original testcase above is used instead of only DROP SEQUENCE):
This means that some different codepath or similar is used between the versions, and also that, for 10.3 and 10.4, the server is still influenced by the existence of a t table. From experience, something like this is quite likely "crashable" using different SQL, and that most likely on 10.3-10.4. Can a SEQUENCE developer please check/confirm what the reason is for the different message between 10.4 and 10.5/10.6? | ||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2021-04-29 ] | ||||||||||||||||||||||
|
One thought is that whatever patch fixed this did not get applied to 10.3/10.4 | ||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2021-04-29 ] | ||||||||||||||||||||||
|
Another thought is , whatever patch it was, it did not crash in 10.3-10.4 |