valkey icon indicating copy to clipboard operation
valkey copied to clipboard

[NEW] Inject slot migration states into RDB

Open PingXie opened this issue 9 months ago • 0 comments

          I know we discussed it, but I forgot the discussion. I still think it's odd that we are putting the replica online before it has the slot information, since it will have a point in time but won't serve any data. It also is getting added to the replication buffer, which could cause replicas to unnecessarily be unable to psync. My previous PoV was why not inject this into the RDB file, which is the true point in time which we are trying to stick on at the end. We already stick "extra" metadata into the RDB file like the psync offset. If a replica comes up, it will also have a partial state.

Originally posted by @madolson in https://github.com/valkey-io/valkey/pull/245#discussion_r1586782041

PingXie avatar May 02 '24 17:05 PingXie