-
Notifications
You must be signed in to change notification settings - Fork 972
Converge divergent shard-id persisted in nodes.conf to primary's shard id #2174
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
Converge divergent shard-id persisted in nodes.conf to primary's shard id #2174
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #2174 +/- ##
============================================
+ Coverage 71.43% 73.57% +2.13%
============================================
Files 122 122
Lines 66210 73777 +7567
============================================
+ Hits 47300 54281 +6981
- Misses 18910 19496 +586
🚀 New features to boost your workflow:
|
Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
5c52a9d
to
8f658fe
Compare
@martinrvisser I tried few scenarios manually, they seem to run fine. Could you try running this patch and see if it helps ? |
Test scenarios:
All of these load fine. |
@hpatro fine in my tests also, nice work |
Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This look correct, please also update the top comment to desc it. So it is somehow like a corrupted (or a outupdated) nodes.conf cause the trouble?
Yes. Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Kyle J. Davis <kyledvs@amazon.com>
…d id (valkey-io#2174) Fixes valkey-io#2171 Handle divergent shard-id across primary and replica from nodes.conf and reconcile all the nodes in the shard to the primary node's shard-id. --------- Signed-off-by: Harkrishn Patro <harkrisp@amazon.com> Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Fixes #2171
Handle divergent shard-id across primary and replica from nodes.conf and reconcile all the nodes in the shard to the primary node's shard-id.