[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: |
|
||||||||
| 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: (cherry picked from commit 15d08a80ed120a756cc0d1f75e4b81c220243302) |
| Comment by Githook User [ 11/Oct/21 ] |
|
Author: {'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}Message: |