git-hulk commented on code in PR #318:
URL: 
https://github.com/apache/kvrocks-controller/pull/318#discussion_r2144439776


##########
store/cluster_shard.go:
##########
@@ -173,6 +173,11 @@ func (shard *Shard) getNewMasterNodeIndex(ctx 
context.Context, masterNodeIndex i
                if clusterNodeInfo.Sequence >= newestOffset {
                        newMasterNodeIndex = i
                        newestOffset = clusterNodeInfo.Sequence
+                       
+                       // only when the slave nodes's master_link_status is 
not up can be selected as the new master
+                       if clusterNodeInfo.MasterLinkStatus != "up" {

Review Comment:
   Thank you!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to