[SERVER-65169] BalancerCommandsScheduler should not release dist locks while holding a mutex Created: 01/Apr/22  Updated: 29/Oct/23  Resolved: 04/Apr/22

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

Type: Bug Priority: Major - P3
Reporter: Paolo Polato Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2022-04-04, Sharding EMEA 2022-04-18
Participants:
Linked BF Score: 43

 Description   

 SERVER-60920 introduced a code change causing collection dist locks to be released by the BalancerCommandsScheduler while holding the internal mutex.

Such state may lead to a process hang if a concurrent stepdown request is also being processed and it must be avoided.



 Comments   
Comment by Githook User [ 04/Apr/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-65169 fix deadlock in BalancerCommandsScheduler while stepping down
Branch: master
https://github.com/mongodb/mongo/commit/e44576384c3ed73e60f5e40b128df38ddb6ac981

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