[SERVER-60468] Check that replication is not shutting down before using _initialSyncer in _initialSyncerCompletionFunction Created: 05/Oct/21  Updated: 29/Oct/23  Resolved: 12/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.1.0-rc1

Type: Bug Priority: Major - P3
Reporter: Huayu Ouyang Assignee: Huayu Ouyang
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
Sprint: Repl 2021-10-18
Participants:
Linked BF Score: 176

 Description   

When replication is shutting down, and the replication_coordinator will swap the _initialSyncer pointer before shutting down initial sync . We should change the order of the if statements to make sure we are not in shutdown before referencing _initialSyncer in _initialSyncerCompletionFunction



 Comments   
Comment by Githook User [ 14/Oct/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-60468 Check that replication is not shutting down before using _initialSyncer in _initialSyncerCompletionFunction

(cherry picked from commit 15d08a80ed120a756cc0d1f75e4b81c220243302)
Branch: v5.1
https://github.com/mongodb/mongo/commit/b1f494855e599ea6adb75b3f2ca68c7b626aafc1

Comment by Githook User [ 11/Oct/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-60468 Check that replication is not shutting down before using _initialSyncer in _initialSyncerCompletionFunction
Branch: master
https://github.com/mongodb/mongo/commit/4b7f6618db153a5042d9326e7b1e4be98387df9e

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