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


##########
controller/cluster.go:
##########
@@ -338,48 +338,56 @@ 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) {
+
+               // If there is no migration information on the source node or 
source node migratingslot is not eauqls shard, you need to clear the migration 
information on the controller.

Review Comment:
   ```suggestion
                // If there is no migration information on the source node or 
the source node migration slot is not equal to the shard,
                // you need to clear the migration information on the 
controller.
   ```



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