Skip to content
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

Allow transaction-isolation level to be configured #380

Open
ElijahLynn opened this issue Apr 10, 2020 · 3 comments
Open

Allow transaction-isolation level to be configured #380

ElijahLynn opened this issue Apr 10, 2020 · 3 comments
Labels

Comments

@ElijahLynn
Copy link

https://www.drupal.org/project/drupal/issues/2833539#comment-12500749

Would like to discuss setting transaction-isolation to READ-COMMITTED by default as it solves a random, inconsistent flicker "SQLSTATE[40001]: Serialization failure: 1213 Deadlock" in some cases.

The default is currently:

mysql> show variables where Variable_name = 'tx_isolation';
+---------------+-----------------+
| Variable_name | Value |
+---------------+-----------------+
| tx_isolation | REPEATABLE-READ |
+---------------+-----------------+

@ElijahLynn ElijahLynn changed the title Set transaction-isolation to READ-COMMITTED by default Set transaction-isolation to READ-COMMITTED by default (Serialization failure: 1213 Deadlock) Apr 10, 2020
@stale
Copy link

stale bot commented Jul 9, 2020

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@stale stale bot added the stale label Jul 9, 2020
@stale
Copy link

stale bot commented Aug 8, 2020

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

@geerlingguy
Copy link
Owner

This should at least be configurable.

See Drupal's docs on it: Setting the MySQL transaction isolation level

@geerlingguy geerlingguy reopened this Nov 3, 2023
@geerlingguy geerlingguy changed the title Set transaction-isolation to READ-COMMITTED by default (Serialization failure: 1213 Deadlock) Allow transaction-isolation level to be configured Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants