Closed chenhao-ye closed 1 day ago
Redis CLUSTER SHARDS
will return the replication offset, so this change may break the compatibility with Redis.
This also means, Worker.ReplicationOffset
not being updated during gossip might be something to fix.
Remove the field
ReplicationOffset
fromstruct Worker
for the following reasons:ClusterConfig.workers[1]
) carries a meaningful replication offset, other workers haveReplicationOffset = 0
upon initialization but never being updated later (this field is not updated during gossip).INFO
).ClusterConfig
: the cluster configuration is not expected to be updated in a steady state (i.e., no cluster membership changes) while replication offset can change rapidly as long as there is new data. The cluster epoch should not be updated simply because there is new data being replicated.