-
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
diagnostic: non-stop cpu expansion causes index out of bounds error #15006
Comments
/assign |
/cc @kaixu120811 |
/label type/bug |
@aytrack: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
close #15006 fix index out of bounds error in sysinfo. * update sysinfo version to the personal branch Signed-off-by: mornyx <mornyx.z@gmail.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
close tikv#15006 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close tikv#15006 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close tikv#15006 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close tikv#15006 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close #15006 fix index out of bounds error in sysinfo. * update sysinfo version to the personal branch Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Signed-off-by: mornyx <mornyx.z@gmail.com> Co-authored-by: Yexiang Zhang <mornyx.z@gmail.com> Co-authored-by: mornyx <mornyx.z@gmail.com>
Bug Report
What version of TiKV are you using?
master
What operating system and CPU are you using?
Steps to reproduce
Boot a TiDB cluster.
Execute the following query:
Expand the number of TiKV host's CPU cores without restarting TiKV process.
Re-execute the query in step-2.
Then TiKV crashed.
If step-3 is not easy to achieve, we can simulate it in the following way:
/proc/stat
:sysinfo/src/linux/cpu.rs
, temporarily use/tmp/proc/stat
instead of/proc/stat
:Rebuild and restart TiKV, then re-run
SELECT * FROM information_schema.cluster_hardware;
.Edit
/tmp/proc/stat
, add one CPU core:SELECT * FROM information_schema.cluster_hardware;
.What did you expect?
All going well.
What did happened?
TiKV crashed:
The text was updated successfully, but these errors were encountered: