-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility broken with newer MariaDB versions / --innodb-snapshot-isolation=ON
#2848
Comments
--innodb-snapshot-isolation=true
--innodb-snapshot-isolation=ON
Examples how this can manifest itself:
|
See: DOMjudge/domjudge#2848 for the explaining of the underlying issue. This affects all released DOMjudge versions. See: DOMjudge/domjudge@792bb6c#diff-e45e45baeda1c1e73482975a664062aa56f20c03dd9d64a827aba57775bed0d3R18
To verify whether you are affected, you can run something like:
|
We have seen the transaction to fail, resulting in exceptions/500s. Part of fixing DOMjudge#2848. There is also no need to have a transaction at all. We now do check after the update whether we won instead and if not, tell the judgehost to try again. Before this, I could with 4 judgedaemons on my laptop reliably reproduce the error by just judging the example problems, seeing it ~5 times for all ~100 submissions. Afterwards, I ran this 10 times and didn't encounter any error.
We have seen the transaction to fail, resulting in exceptions/500s. Part of fixing #2848. There is also no need to have a transaction at all. We now do check after the update whether we won instead and if not, tell the judgehost to try again. Before this, I could with 4 judgedaemons on my laptop reliably reproduce the error by just judging the example problems, seeing it ~5 times for all ~100 submissions. Afterwards, I ran this 10 times and didn't encounter any error.
See: DOMjudge/domjudge#2848 for the explaining of the underlying issue. This affects all released DOMjudge versions. See: DOMjudge/domjudge@792bb6c#diff-e45e45baeda1c1e73482975a664062aa56f20c03dd9d64a827aba57775bed0d3R18
The flag causes problems when 2 transactions, update data that has been 'read-locked' (not the actual term). See the following interleaving of events:
i.e. this flag causes issues when: a transaction selects some row Within the context of |
MariaDB version 11.6.2 (and perhaps other versions) set
--innodb-snapshot-isolation=ON
which causes multiple queries in DOMjudge to fail.#2843 is likely part of a fix, perhaps #2844 also helps
Some more references:
The text was updated successfully, but these errors were encountered: