Skip to content

PSYNC2: make partial sync possible after master reboot#6034

Closed
soloestoy wants to merge 1 commit intoredis:unstablefrom
soloestoy:psync2-master-load-replinfo
Closed

PSYNC2: make partial sync possible after master reboot#6034
soloestoy wants to merge 1 commit intoredis:unstablefrom
soloestoy:psync2-master-load-replinfo

Conversation

@soloestoy
Copy link
Contributor

@soloestoy soloestoy commented Apr 20, 2019

Hi @antirez, recently I have a talk with @braveHeart1996 about PSYNC2 who opened an issue #6030 .

Although the fix in PR #6031 is not right, but one interesting idea is that can we allow a master to load replication info?

Maybe we can load the replication info as a secondary ID and offset, just like what replicaof no one does, give a chance to replicas to partial resynchronizations with the rebooted master.

Just for discussion.

@antirez
Copy link
Contributor

antirez commented Apr 26, 2019

Thanks @soloestoy, I'll give it a look, if it is possible it is surely an advantage. Maybe we excluded that possibility initially because of safety concerns, so it's better to make sure no problems can happen. Thanks for bringing this up.

@soloestoy
Copy link
Contributor Author

Maybe one safety concern, an old problem: expire time.

An instance reboots as a master would not load the expired keys, then if it loads the replication info and replicas has the same replication info, expired keys when loading cannot be propagated to replicas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants