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 <[email protected]>
Signed-off-by: Harkrishn Patro <[email protected]>
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 <[email protected]>
Signed-off-by: Harkrishn Patro <[email protected]>
enjoy-binbin
left a comment
There was a problem hiding this comment.
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. |
Signed-off-by: Kyle J. Davis <[email protected]>
…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 <[email protected]> Signed-off-by: Viktor Söderqvist <[email protected]>
…d id (#2174) 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. --------- Signed-off-by: Harkrishn Patro <[email protected]> Signed-off-by: Viktor Söderqvist <[email protected]>
…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 <[email protected]> Signed-off-by: Viktor Söderqvist <[email protected]>
…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 <[email protected]>
…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 <[email protected]>
…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 <[email protected]>
|
I tried backporting this one to 7.2 but I couldn't get the test case to pass, so I'm skipping it for now. If anyone wants to help backporting it, feel free to open a PR targeting the 7.2 branch. Some difficulties to note:
|
…d id (#2174) 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. --------- Signed-off-by: Harkrishn Patro <[email protected]>
… id (valkey-io#2174) Handle divergent shard-id across master and replica from nodes.conf and reconcile all the nodes in the shard to the master node's shard-id. Fixes valkey-io#2171 (cherry picked from commit 4a3e713) Signed-off-by: Harkrishn Patro <[email protected]>
… id (valkey-io#2174) Handle divergent shard-id across master and replica from nodes.conf and reconcile all the nodes in the shard to the master node's shard-id. Fixes valkey-io#2171 (cherry picked from commit 4a3e713) Signed-off-by: Harkrishn Patro <[email protected]> Signed-off-by: Roshan Khatri <[email protected]>
… id (valkey-io#2174) Handle divergent shard-id across master and replica from nodes.conf and reconcile all the nodes in the shard to the master node's shard-id. Fixes valkey-io#2171 (cherry picked from commit 4a3e713) Signed-off-by: Harkrishn Patro <[email protected]> Signed-off-by: Roshan Khatri <[email protected]>
@zuiderkwast opened a PR for this here: #3229 |
#3229) Backporting #2174 to 7.2 branch Handle divergent shard-id across master and replica from nodes.conf and reconcile all the nodes in the shard to the master node's shard-id. Fixes #2171 (cherry picked from commit 4a3e713) Signed-off-by: Harkrishn Patro <[email protected]> Signed-off-by: Roshan Khatri <[email protected]>
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.