Open greatsharp opened 3 hours ago
https://github.com/apache/kvrocks-controller/blob/2649b8f08c1bbc851509a4f182970d3294216def/store/store.go#L182C1-L186C27
In case of somebody doing cluster operation on nodes side, bypass controller, then the node version will be larger than cluster version in controller.
the equal check will stop the function which update the latest cluster info (fetch by 'clsuter nodes' command) into the controller etcd.
the cluster version is auot increment, so suggest to only check old cluster version should not be larger than clusterInfo version.
the SetCluster method has same check
https://github.com/apache/kvrocks-controller/blob/2649b8f08c1bbc851509a4f182970d3294216def/store/store.go#L182C1-L186C27
In case of somebody doing cluster operation on nodes side, bypass controller, then the node version will be larger than cluster version in controller.
the equal check will stop the function which update the latest cluster info (fetch by 'clsuter nodes' command) into the controller etcd.
the cluster version is auot increment, so suggest to only check old cluster version should not be larger than clusterInfo version.