[SERVER-43230] Fix race in catchup_takeover_two_nodes_ahead.js Created: 09/Sep/19  Updated: 29/Oct/23  Resolved: 23/Sep/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.0.13, 4.2.1, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Samyukta Lanka
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:
v4.2, v4.0
Sprint: Repl 2019-09-23, Repl 2019-10-07
Participants:
Linked BF Score: 31

 Description   

We call server status to verify the way catchup ended before before making sure the former primary has transitioned back to a secondary. This can cause a race where the node hasn't actually exited catchup when we try to check the metrics.



 Comments   
Comment by Githook User [ 04/Oct/19 ]

Author:

{'name': 'Samyukta Lanka', 'username': 'lankas', 'email': 'samy.lanka@mongodb.com'}

Message: SERVER-43230 Fix race in catchup_takeover_two_nodes_ahead.js

(cherry picked from commit 0efd66f7a4f208176acbcf8fb209dcc10bba6f84)
Branch: v4.0
https://github.com/mongodb/mongo/commit/a27315330eca3ccfb8f91e2140a87b26b34923c5

Comment by Githook User [ 25/Sep/19 ]

Author:

{'name': 'Samyukta Lanka', 'username': 'lankas', 'email': 'samy.lanka@mongodb.com'}

Message: SERVER-43230 Fix race in catchup_takeover_two_nodes_ahead.js

(cherry picked from commit 0efd66f7a4f208176acbcf8fb209dcc10bba6f84)
Branch: v4.2
https://github.com/mongodb/mongo/commit/9685608f8479f8c9c39f7dbfd1f71f5d4d3b7012

Comment by Githook User [ 23/Sep/19 ]

Author:

{'name': 'Samyukta Lanka', 'username': 'lankas', 'email': 'samy.lanka@mongodb.com'}

Message: SERVER-43230 Fix race in catchup_takeover_two_nodes_ahead.js
Branch: master
https://github.com/mongodb/mongo/commit/0efd66f7a4f208176acbcf8fb209dcc10bba6f84

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