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

Unexpected pod restart during resize storage size of tikv #5601

Closed
ideascf opened this issue Apr 1, 2024 · 0 comments · Fixed by #5602
Closed

Unexpected pod restart during resize storage size of tikv #5601

ideascf opened this issue Apr 1, 2024 · 0 comments · Fixed by #5602

Comments

@ideascf
Copy link
Contributor

ideascf commented Apr 1, 2024

Bug Report

Pods of tikv have been restarted during resizing storage size of TiKV component. The impacted cluster is running with tc.spec.configUpdateStrategy: InPlace, and that value used to be tc.spec.configUpdateStrategy: RollingUpdate when the cluster is created. It seems that pvc_modifier tries to recreate tikv STS to do resize storage size. And then tikv_member_manager create a new STS but with a wrong ConfigMap having the same data and another name 'db-tikv' (without hash suffix). The wrongly used ConfigMap causes STS controller to rolling restart all TiKV pods and without leader eviction.

What version of Kubernetes are you using?

v1.28.6-eks-508b6b3

What version of TiDB Operator are you using?

v1.6.0-alpha.11

What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?

It doesn't matter

What's the status of the TiDB cluster pods?

Unexpectedly restart

What did you do?

What did you expect to see?
No restart

What did you see instead?
Restarting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant