hll1213181368 commented on PR #346:
URL: 
https://github.com/apache/kvrocks-controller/pull/346#issuecomment-3311749907

   > @greatsharp @hll1213181368 I'm sorry that I cannot get what's going wrong 
in your case.
   > 
   > What your change is from `-1` to `null` when storing, but the PR title is 
fixing the compatibility issue.
   
   @git-hulk 我直接中文交流吧。
   
之前旧版本单slot迁移的时候,migrating_slot返回字段值为整型,不处于迁移中,migrating_slot返回-1,这些信息保存在etcd中。
   
   
现在新版本支持slot范围迁移,migrating_slot返回的是字符串,例如:正在迁移1024-2048区间段,返回的是“1024-2048”;如果不处于迁移中,返回的是null。
   
   
现在为了兼容之前旧集群保存在etcd中的migrating_slot为-1信息。针对新旧集群,如果不处于迁移中,都返回nil。旧集群在新版本控制器做切换更新拓扑后,会把之前-1的更改为nil。
   


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