-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Replication
-
None
-
None
-
None
-
None
-
None
-
None
-
None
What
Add `GUARDED_BY(_mutex)` to the unprotected member fields in `InitialSyncer` and `BaseCloner`. Add `REQUIRES(_mutex)` to private helpers that read or write them.
Files: `initial_syncer.cpp` (line 1108), `base_cloner.h` (line 178).
Resolves: SERVER-111256, SERVER-109743
Why
Cloner races occur between the cloner thread and the reporting thread. Because Coverity cannot be run locally, `GUARDED_BY` annotations are the most reliable way to confirm the fix holds and to prevent these fields from being accessed without the lock in the future.
- is related to
-
SERVER-108614 Coverity analysis defect 158662: Dereference null return value
-
- Backlog
-
-
SERVER-109534 Coverity analysis defect 150277: Data race condition
-
- Backlog
-
-
SERVER-109743 Coverity analysis defect 146620: Data race condition
-
- Backlog
-
-
SERVER-111256 Coverity analysis defect 174997: Data race condition
-
- Backlog
-