[SERVER-45670] ReplicaSetMonitor methods must clear ScanState on shutdown Created: 21/Jan/20  Updated: 29/Oct/23  Resolved: 22/Jan/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Task Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 19

 Description   

This relates to #BF-15843 – `hostsToScan` is non-empty when calling `ScanState::enqueAllUntriedHosts` (here).

Potential fix is to ensure `` clears `hostsToScan` before returning. This could not be the case during a shutdown event (here).



 Comments   
Comment by Githook User [ 22/Jan/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@10gen.com'}

Message: SERVER-45670 Clear ScanState on shutdown
Branch: master
https://github.com/mongodb/mongo/commit/02d4981e6e9d9fbdb89a76dcaf55b66205d04f09

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