-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Negative WaitGroup counter during the analyze cause TiDB is killed #52601
Comments
Triggering conditions
Even if the above three conditions are met, it does not mean that the restart of tidb will definitely be triggered. This is a problem of probability triggering. |
Phenomenon and Judgment Evidence
|
Root cause and analysisRoot causeAnalyze job panic when it retry job and exceed the memory limit. (There is a certain probability that it will happen) Analysis
I write a demo test of panic inside of defer function and go routine. This kind of panic couldn't be recovered and cause process is killed.
The panic result of my demo code
|
Thinking
|
/found customer |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Analyze table with the large column such as blob
2. What did you expect to see? (Required)
success
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
v6.5.5
The text was updated successfully, but these errors were encountered: