Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
Fully Compatible
-
Sharding EMEA 2021-05-03
Description
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).