[SERVER-56104] Retake critical section on step up can invariant because of ReplWriterWorker Created: 14/Apr/21  Updated: 29/Oct/23  Resolved: 16/Apr/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2021-05-03
Participants:

 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).



 Comments   
Comment by Githook User [ 16/Apr/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-56104 Retake critical section on step up can invariant because of ReplWriterWorker
Branch: master
https://github.com/mongodb/mongo/commit/1c7be4534e967610db5727e572c052219d40d054

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