antirez 57fa355e56 PSYNC2: meaningful offset implemented.
A very commonly signaled operational problem with Redis master-replicas
sets is that, once the master becomes unavailable for some reason,
especially because of network problems, many times it wont be able to
perform a partial resynchronization with the new master, once it rejoins
the partition, for the following reason:

1. The master becomes isolated, however it keeps sending PINGs to the
replicas. Such PINGs will never be received since the link connection is
actually already severed.
2. On the other side, one of the replicas will turn into the new master,
setting its secondary replication ID offset to the one of the last
command received from the old master: this offset will not include the
PINGs sent by the master once the link was already disconnected.
3. When the master rejoins the partion and is turned into a replica, its
offset will be too advanced because of the PINGs, so a PSYNC will fail,
and a full synchronization will be required.

Related to issue #7002 and other discussion we had in the past around
this problem.
2020-03-25 15:26:37 +01:00
..
2019-11-13 10:14:45 +08:00
2018-10-05 18:29:23 +02:00
2019-11-20 20:39:04 -05:00
2020-03-23 12:02:12 +01:00
2019-07-17 16:40:24 +03:00
2018-11-25 08:10:26 +00:00
2020-03-02 16:49:11 +01:00
2020-02-06 11:48:12 +02:00
2018-07-03 18:19:46 +02:00
2019-10-07 09:09:32 +03:00
2020-01-01 18:13:13 +01:00
2019-02-24 21:38:15 +01:00
2018-10-17 12:57:21 +02:00
2020-03-12 20:44:32 +08:00
2019-10-24 14:24:55 +03:00
2019-11-19 17:23:47 +08:00
2020-02-04 12:55:26 +01:00
2018-07-03 18:19:46 +02:00
2019-10-02 11:30:20 +02:00
2020-02-22 11:38:51 -05:00
2018-11-11 18:49:55 +00:00
2019-12-21 21:27:38 +08:00
2020-03-23 01:07:46 -04:00
2019-05-08 12:53:56 +08:00