[SERVER-57875] stopReplicationOnSecondaries needs to wait for replication after changing CWWC Created: 21/Jun/21  Updated: 29/Oct/23  Resolved: 22/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc3, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Moustafa Maher
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Repl 2021-06-28
Participants:
Linked BF Score: 83

 Description   

We change the CWWC in stopReplicationOnSecondaries before stopping replication. This generates a new oplog entry, which could mean that not all secondaries are at the same optime when we stop replication, which could cause a node that we attempt to step up to fail to get elected.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 22/Jun/21 ]

Author:

{'name': 'Moustafa Maher', 'email': 'm.maher@10gen.com', 'username': 'moustafamaher'}

Message: SERVER-57875 stopReplicationOnSecondaries needs to wait for replication after changing CWWC
Branch: v5.0
https://github.com/mongodb/mongo/commit/20fabcca5d9c29f4eef0ab026b50c24a038c63f1

Comment by Githook User [ 22/Jun/21 ]

Author:

{'name': 'Moustafa Maher', 'email': 'm.maher@10gen.com', 'username': 'moustafamaher'}

Message: SERVER-57875 stopReplicationOnSecondaries needs to wait for replication after changing CWWC
Branch: master
https://github.com/mongodb/mongo/commit/da173c4995cd000da3d585c254f681f13edd0b2c

Generated at Thu Feb 08 05:43:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.