You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MariaDB 10.5.15 / MySQL 8.0.29 break the deadlock test #14174
[MARIADB] Transaction
deadlock handling
should release the connection for a deadlocked transaction (2/2):
AssertionError: expected false to be true
+ expected - actual
-false
+true
Fix for the short term is included in #14171 by pinning the patch version of MariaDB. Renovate will do automatic updates on this so it is not an issue.
@ephys I only updated it for the main branch. This is also the failing test on v6. Renovate does not do automatic updates on v6 so we can either disable the test for now or fix it. But I'm not sure when I can get to fixing it
I made a branch to fix it a little while ago but changed my mind and opted to fix the test instead
Now that a v6 release is blocked by it I should prioritize it 😅
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
The test fails because it tries to cause a deadlock but fails.
Here is the query execution order: (ONE & TWO are the connection IDs of each transaction)
start: 'awesome' is null
Executing (ONE): START TRANSACTION;
Executing (ONE): SELECT `id`, `username`, `awesome` FROM `users` AS `user` WHERE `user`.`id` = 1 LOCK IN SHARE MODE;
Executing (TWO): SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
Executing (TWO): START TRANSACTION;
Executing (TWO): SELECT `id`, `username`, `awesome` FROM `users` AS `user` WHERE `user`.`id` = 1;
Executing (TWO): UPDATE `users` SET `awesome`=? WHERE `id` = ?
-> sets awesome to false
Executing (ONE): UPDATE `users` SET `awesome`=? WHERE `id` = ?
-> sets awesome to true
Executing (ONE): COMMIT;
Executing (TWO): COMMIT;
end: 'awesome' is false
previously this lead to a deadlock instead, and the UPDATE query on transaction TWO would reject. Is that a bug in MariaDB? I would expect this to deadlock too
As a temporary workaround, we could disable this test for mariaDB 10.5.15. I'm starting to think this is an issue in MariaDB itself and it may get resolved in a future update?
Yeah, it might be better to skip this test with an expiring TODO for June 1st so we can take a look again if we want to release a stable build around that time. Can you make PRs for v6 and main for this or shall I do that?
changed the title [-]MariaDB 10.5.15 / MySQL 8.0.29 breaks the deadlock test[/-][+]MariaDB 10.5.15 / MySQL 8.0.29 break the deadlock test[/+]on May 16, 2022
Activity
WikiRik commentedon Feb 25, 2022
Fix for the short term is included in #14171 by pinning the patch version of MariaDB. Renovate will do automatic updates on this so it is not an issue.
WikiRik commentedon Mar 10, 2022
@ephys I only updated it for the main branch. This is also the failing test on v6. Renovate does not do automatic updates on v6 so we can either disable the test for now or fix it. But I'm not sure when I can get to fixing it
ephys commentedon Mar 10, 2022
I made a branch to fix it a little while ago but changed my mind and opted to fix the test instead
Now that a v6 release is blocked by it I should prioritize it 😅
github-actions commentedon Mar 25, 2022
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
WikiRik commentedon Mar 25, 2022
@ephys would be nice if you could take another look, otherwise I can check it out next week
ephys commentedon Apr 1, 2022
The test fails because it tries to cause a deadlock but fails.
Here is the query execution order: (ONE & TWO are the connection IDs of each transaction)
previously this lead to a deadlock instead, and the
UPDATEquery on transaction TWO would reject. Is that a bug in MariaDB? I would expect this to deadlock tooephys commentedon Apr 3, 2022
As a temporary workaround, we could disable this test for mariaDB 10.5.15. I'm starting to think this is an issue in MariaDB itself and it may get resolved in a future update?
WikiRik commentedon Apr 3, 2022
Yeah, it might be better to skip this test with an expiring TODO for June 1st so we can take a look again if we want to release a stable build around that time. Can you make PRs for v6 and main for this or shall I do that?
ephys commentedon Apr 3, 2022
This issue also happens with 10.7.3. It could be intended, or a bug that's present in multiple majors.
I'm opening a PR to disable this test for the time being
WikiRik commentedon Apr 3, 2022
Yeah, it could also be intended but then we look into it later. It's not the test with the highest impact luckily
ephys commentedon May 13, 2022
The docker image for MySQL 8.0 was updated to 8.0.29, and the same deadlock tests are now failing for MySQL 8 too (at least on the v6 branch)
[-]MariaDB 10.5.15 breaks a test[/-][+]MariaDB 10.5.15 / MySQL 8.0.29 breaks the deadlock test[/+][-]MariaDB 10.5.15 / MySQL 8.0.29 breaks the deadlock test[/-][+]MariaDB 10.5.15 / MySQL 8.0.29 break the deadlock test[/+]