[SERVER-79937] Avoid majority reads within the BalancerDefragmentationPolicy Created: 11/Aug/23 Updated: 29/Oct/23 Resolved: 16/Aug/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0, 7.0.1 |
| 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: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Requested: |
v7.0, v6.3, v6.0
|
||||||||||||
| Sprint: | Sharding EMEA 2023-08-21 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
The BalancerDefragmentationPolicy is a collaborator of the Balancer accessed by its secondary thread and an executor - and its state is hence protected by a mutex. In order to avoid deadlocks in stepdown scenarios, BalancerDefragmentationPolicy should avoid majority waits while holding its mutex. |
| Comments |
| Comment by Githook User [ 17/Oct/23 ] |
|
Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}Message: Revert " This reverts commit b9400522faf69f239a91feb6c0f6f777d42327b4. |
| Comment by Githook User [ 27/Sep/23 ] |
|
Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}Message: Revert " This reverts commit 82f57718ce8ea1241beb5a01aaef90b2ac95d1c0. |
| Comment by Githook User [ 26/Sep/23 ] |
|
Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}Message: Revert " This reverts commit b9400522faf69f239a91feb6c0f6f777d42327b4. |
| Comment by Githook User [ 21/Aug/23 ] |
|
Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}Message: (cherry picked from commit b9400522faf69f239a91feb6c0f6f777d42327b4) |
| Comment by Githook User [ 16/Aug/23 ] |
|
Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}Message: |