-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Panic in analyze sampling #11192
Comments
the cause seems that tidb version higher than v5.3 and tikv is less than v5.3. In version 5.3, tidb change the analyze behaviors using sampling. so you can set analyze version=1 or update tikv to solve it. |
/severity major |
Got it. BTW, I think we can make this code more robust. |
/assign winoros |
/assign LykxSassinator |
… tidb tried to do sampling with `max_sample_size == 0` Fix the `panic` error when tidb tried to sample with an abnormal setting - `max_sample_size == 0`. Signed-off-by: Lucasliang <nkcs_lykx@hotmail.com>
…#12696) close tikv#11192, ref tikv#11425 Signed-off-by: Lucasliang <nkcs_lykx@hotmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Bug Report
What version of TiKV are you using?
https://github.com/tikv/tikv/tree/d0c129dde8d3f41bbac26ab786419bb4b5e24878
What operating system and CPU are you using?
doesn't matter
Steps to reproduce
I run tipocket
pipeline
test. I find several TiKV panic and stuck in an infinite crash loop.What did you expect?
Not panic.
What did happened?
tikv/src/coprocessor/statistics/analyze.rs
Lines 518 to 524 in d0c129d
It seems this panic can be triggered only when
samples
is empty andmax_sample_size
is 0.The text was updated successfully, but these errors were encountered: