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: redis-cluster unexpected downscaling (#1167) #1171

Closed
wants to merge 4 commits into from

Conversation

xiaozhuang-a
Copy link
Contributor

@xiaozhuang-a xiaozhuang-a commented Dec 16, 2024

Description

  1. ensure statefulset status is ready before scaling
  2. failover command is not effective
  3. return directly after failover command

Fixes #1167

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Tests have been added/modified and all tests pass.
  • Functionality/bugs have been confirmed to be unchanged or fixed.
  • I have performed a self-review of my own code.
  • Documentation has been updated or added where necessary.

Additional Context

@xiaozhuang-a
Copy link
Contributor Author

already self-test passed

@drivebyer
Copy link
Collaborator

@xiaozhuang-a please fix the failed check :)

@drivebyer
Copy link
Collaborator

We should retain the content from this commit in this PR. It seems the content was removed after resolving the conflict. @xiaozhuang-a

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes missing coverage. Please review.

Project coverage is 30.13%. Comparing base (60ef5a2) to head (64fb517).
Report is 7 commits behind head on master.

Files with missing lines Patch % Lines
pkg/k8sutils/cluster-scaling.go 0.00% 13 Missing ⚠️
...ontrollers/rediscluster/rediscluster_controller.go 0.00% 8 Missing ⚠️
pkg/k8sutils/poddisruption.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1171      +/-   ##
==========================================
- Coverage   30.20%   30.13%   -0.08%     
==========================================
  Files          55       55              
  Lines        6294     6309      +15     
==========================================
  Hits         1901     1901              
- Misses       4200     4215      +15     
  Partials      193      193              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xiaozhuang-a
Copy link
Contributor Author

We should retain the content from this commit in this PR. It seems the content was removed after resolving the conflict. @xiaozhuang-a

there are some issues with conflict merging, please allow me to bring up a new PR

@xiaozhuang-a
Copy link
Contributor Author

We should retain the content from this commit in this PR. It seems the content was removed after resolving the conflict. @xiaozhuang-a

#1173

@drivebyer drivebyer closed this Dec 16, 2024
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 this pull request may close these issues.

crash master after failover can cause unexpected downscaling
2 participants