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

Fix concurrent map writes bug of K8s metrics API client #268

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

daichimukai
Copy link
Contributor

This PR fixes a bug reported in #266. Thanks @Mihirkumarsingh for reporting!

@daichimukai daichimukai self-assigned this Jul 4, 2024
The pvc-autoresizer can use Prometheus or the K8s metrics API as sources
of metrics to determine whether a PVC needs to be resized. There is a
concurrent map access bug in the K8s metrics API client implementation,
which causes the pvc-autoresizer to crash. This commit fixes this issue.

Signed-off-by: Daichi Mukai <daichi-mukai@cybozu.co.jp>
@daichimukai daichimukai force-pushed the fix-k8s-metrics-api-concurrent-map-writes branch from f9e1160 to 114a3d8 Compare July 4, 2024 01:39
@daichimukai daichimukai marked this pull request as ready for review July 5, 2024 02:24
@daichimukai daichimukai requested a review from a team as a code owner July 5, 2024 02:24
@toshipp toshipp merged commit c4a4a6e into main Jul 8, 2024
12 checks passed
@toshipp toshipp deleted the fix-k8s-metrics-api-concurrent-map-writes branch July 8, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants