[SERVER-48783] Critical section should not be entered when performing a shard version recovery Created: 15/Jun/20  Updated: 29/Oct/23  Resolved: 15/Jun/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.7.0

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

Issue Links:
Depends
Duplicate
is duplicated by SERVER-48722 CollectionCriticalSection should wait... Closed
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 16

 Description   

Threads in onShardVersionMismatch should wait for the critical section to be released, but should never hold it.

As a consequence, threads entering the critical section should not wait for recovers and the following invariants (1 2) need to be removed.



 Comments   
Comment by Githook User [ 16/Jun/20 ]

Author:

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

Message: SERVER-48783 Critical section should not be entered when performing a shard version recovery
Branch: master
https://github.com/mongodb/mongo/commit/2bb2f2225d18031328722f98fe05a169064a8a8a

Comment by Githook User [ 15/Jun/20 ]

Author:

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

Message: SERVER-48783 Critical section should not be entered when performing a shard version recovery
Branch: master
https://github.com/mongodb/mongo/commit/f84654bc3cf814ae75b8454bcf52bc2929ec53ea

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