hll1213181368 commented on code in PR #357:
URL: 
https://github.com/apache/kvrocks-controller/pull/357#discussion_r2401901635


##########
controller/cluster.go:
##########
@@ -338,48 +338,72 @@ func (c *ClusterChecker) tryUpdateMigrationStatus(ctx 
context.Context, clonedClu
                        ).Error("Failed to get the cluster info from the source 
node", zap.Error(err))
                        continue
                }
-               if 
!sourceNodeClusterInfo.MigratingSlot.Equal(shard.MigratingSlot.SlotRange) {
-                       log.Error("Mismatch migrating slot",
+
+               // If there is no migration information on the master node, you 
need to clear the migration information on the controller.
+               if sourceNodeClusterInfo.MigratingSlot == nil {

Review Comment:
   yes. I modify the code. Distinguishing these two if judgments is mainly for 
more detailed log records.



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