Skip to content

fix: redis-cluster unexpected downscaling (#1167)#1171

Closed
xiaozhuang-a wants to merge 4 commits intoOT-CONTAINER-KIT:masterfrom
xiaozhuang-a:mm-fix
Closed

fix: redis-cluster unexpected downscaling (#1167)#1171
xiaozhuang-a wants to merge 4 commits intoOT-CONTAINER-KIT:masterfrom
xiaozhuang-a:mm-fix

Conversation

@xiaozhuang-a
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

already self-test passed

@drivebyer
Copy link
Copy Markdown
Collaborator

@xiaozhuang-a please fix the failed check :)

@drivebyer
Copy link
Copy Markdown
Collaborator

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

@codecov
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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