-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Miscellaneous changes for SystemLogs #11293
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
Conversation
|
First commit 4e9a326 will go to master. |
|
Superseded by #11307 |
|
@alexey-milovidov do you have details on why the deadlock occurred? |
|
We have loaded system database and started up tables. Some tables started to perform background merge. Then we initialize SystemLogs and it tries to do RENAME TABLE. It is introducing a sequence of R W R locks: that caused deadlock because our RWLocks are fair. |
|
Got it, but what prevents from deadlock when flusher thread creates table? |
|
I think that there is no difference, it can lead to the same deadlock (that will be timed out after 120 seconds by default). |
|
It will be fixed automatically when we will change the engine of system database to Atomic #7512 |
Indeed, so how about restoring this config directive? |
|
It's harmful, because it may prevent server to startup for 120 seconds. |
And not only this, but eventually server will not start
Any ETA?
FWIW I finally came up with a reproducible test for this (I was stuck a little but due to |
|
Maybe it is a good idea to make |
|
Yes, it will be Ok. |
Changelog category (leave one):
Revert #11029 because it leads to deadlock: