[SERVER-83320] Create collection participant may incorrectly try to release the critical section Created: 16/Nov/23  Updated: 17/Nov/23  Resolved: 17/Nov/23

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

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pol Pinol
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-79491 Define CreateCollectionCoordinator ph... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: CAR Team 2023-11-27
Participants:

 Description   

(At the time of writing, no released version is affected by the bug because the new coordinator is feature flagged).

SERVER-79491 introduced the acquisition/release of critical section on participant shards. The release is calling into the ShardSvrParticipantBlockCommand that is throwing if the critical section reason differs.

This can lead to hit an invariant in the same way described in SERVER-70167, with the difference that it could be hit on a participant node rather than on the coordinator node.

A possible solution would be to add a flag to the command indicating not to throw in case the reason differs.



 Comments   
Comment by Githook User [ 17/Nov/23 ]

Author:

{'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}

Message: SERVER-83320 Create collection participant may incorrectly try to release the critical section
Branch: master
https://github.com/mongodb/mongo/commit/2393dce6725013bf8a6b5f7cde55c3839856cb99

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