-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.4.4
-
Component/s: Replication
-
None
-
Environment:Ubuntu 12.04 on a Dell XPS13 laptop
-
ALL
-
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
-
None
A replica set primary is stopped with Ctrl-Z. After it is resumed, it completes one final write operation, returns to the replica set claiming to be primary and claiming to have a more recent state of the oplog. This causes the current (real) primary to yield and to roll back everything it has written in the meantime.
Proposed fix: The real primary node should be able to know that it has been elected with majorty support, and that writes accepted after that election are valid, and the returning primary should be rejected.