[SERVER-50607] Must hold mutex when calling _checkForShutdownAndConvertStatus_inlock Created: 28/Aug/20  Updated: 29/Oct/23  Resolved: 02/Sep/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.7.0, 4.2.10, 4.4.2, 4.0.21

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: thread-sanitizer
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.4, v4.2, v4.0
Sprint: Repl 2020-09-21
Participants:
Linked BF Score: 0

 Description   

We must hold the initial syncer mutex when calling _checkForShutdownAndConvertStatus_inlock in _startInitialSyncAttemptCallback.

We should probably convert our _inlock calls to WithLock in general.



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

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-50607 Must hold mutex when calling _checkForShutdownAndConvertStatus_inlock

(cherry picked from commit a5ed6a52228efbaad71aa62324a36740fc8877a2)
Branch: v4.2
https://github.com/mongodb/mongo/commit/88276238fa97b47c0ef14362b343c5317ecbd739

Comment by Githook User [ 22/Sep/20 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-50607 Must hold mutex when calling _checkForShutdownAndConvertStatus_inlock

(cherry picked from commit a5ed6a52228efbaad71aa62324a36740fc8877a2)
Branch: v4.0
https://github.com/mongodb/mongo/commit/418f559e6f407c6ca391ebd4bac177251ed5affb

Comment by Githook User [ 22/Sep/20 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-50607 Must hold mutex when calling _checkForShutdownAndConvertStatus_inlock

(cherry picked from commit a5ed6a52228efbaad71aa62324a36740fc8877a2)
Branch: v4.4
https://github.com/mongodb/mongo/commit/739170171a291da36b049892794098da3e3d7b84

Comment by Githook User [ 02/Sep/20 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-50607 Must hold mutex when calling _checkForShutdownAndConvertStatus_inlock
Branch: master
https://github.com/mongodb/mongo/commit/a5ed6a52228efbaad71aa62324a36740fc8877a2

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