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: ensure sentinel does not observes the failover progress in replication cluster #803

Merged
merged 4 commits into from
Mar 18, 2024

Conversation

drivebyer
Copy link
Collaborator

@drivebyer drivebyer commented Mar 7, 2024

Description

Fix #802.
Fix #778 .

It's acceptable to extend the RequeueAfter period for reconciliation, as the operations performed during this process are limited and primarily involve creating the sentinel StatefulSet and associated services.
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

@drivebyer drivebyer added the bug Something isn't working label Mar 7, 2024
Copy link

codecov bot commented Mar 7, 2024

Codecov Report

Attention: Patch coverage is 28.57143% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 35.73%. Comparing base (d121d86) to head (8d36f11).
Report is 8 commits behind head on master.

Files Patch % Lines
k8sutils/redis-replication.go 0.00% 4 Missing ⚠️
controllers/redissentinel_controller.go 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #803      +/-   ##
==========================================
+ Coverage   35.20%   35.73%   +0.52%     
==========================================
  Files          19       19              
  Lines        3213     2628     -585     
==========================================
- Hits         1131      939     -192     
+ Misses       2015     1621     -394     
- Partials       67       68       +1     

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

@drivebyer drivebyer requested a review from shubham-cmyk March 7, 2024 10:12
@shubham-cmyk shubham-cmyk added the temp-fix These are temporary fix and need a proper fix later label Mar 7, 2024
@drivebyer
Copy link
Collaborator Author

This PR needs #806 to be merged first because when one applies the sentinel first, the sentinel will be monitoring an empty Redis replication cluster.

@drivebyer drivebyer force-pushed the fix-sentinel-restart branch from e65282e to 083118f Compare March 11, 2024 13:33
@drivebyer
Copy link
Collaborator Author

@shubham-cmyk it's ready now plz.

@drivebyer drivebyer enabled auto-merge (squash) March 12, 2024 09:23
drivebyer and others added 4 commits March 18, 2024 20:50
Signed-off-by: drivebyer <[email protected]>
Signed-off-by: drivebyer <[email protected]>
@drivebyer drivebyer force-pushed the fix-sentinel-restart branch from 36cc0ee to 8d36f11 Compare March 18, 2024 12:50
Copy link
Member

@shubham-cmyk shubham-cmyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@drivebyer drivebyer merged commit edc3083 into OT-CONTAINER-KIT:master Mar 18, 2024
27 of 28 checks passed
@drivebyer drivebyer deleted the fix-sentinel-restart branch March 27, 2024 02:16
mattrobinsonsre pushed a commit to mattrobinsonsre/redis-operator that referenced this pull request Jul 11, 2024
…cation cluster (OT-CONTAINER-KIT#803)

* fix: ensure sentinel does not observes the failover progress in replication cluster

Signed-off-by: drivebyer <[email protected]>

* add e2e

Signed-off-by: drivebyer <[email protected]>

* enhance check

Signed-off-by: drivebyer <[email protected]>

* check master through sentinel

Signed-off-by: drivebyer <[email protected]>

---------

Signed-off-by: drivebyer <[email protected]>
Signed-off-by: drivebyer <[email protected]>
Signed-off-by: Matt Robinson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working temp-fix These are temporary fix and need a proper fix later
Projects
None yet
2 participants