-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
Sharding EMEA 2021-05-03
-
None
-
None
-
None
-
None
-
None
-
None
-
None
On a just elected primary node, it can happen that a ReplWriterWorker is still catching up the oplog causing this check to pass and - subsequently - the critical section to be acquired.
When this happens, an invariant is triggered during drain mode when trying to retake the critical section (already acquired by the sharding observer).