valkey-io / valkey

A new project to resume development on the formerly open-source Redis project. We're calling it Valkey, since it's a twist on the key-value datastore.

Home Page:https://valkey.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[NEW] Inject slot migration states into RDB

PingXie opened this issue · 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 #245 (comment)