[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:
Backports
Problem/Incident
causes SERVER-81372 Collection defragmentation phases spo... Closed
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 "SERVER-79937 Avoid waiting for replication while defragmenting a collection"

This reverts commit b9400522faf69f239a91feb6c0f6f777d42327b4.
Branch: v7.1
https://github.com/mongodb/mongo/commit/f387ede4967008f18f98802b9509c3ece26c5441

Comment by Githook User [ 27/Sep/23 ]

Author:

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

Message: Revert "SERVER-79937 Avoid waiting for replication while defragmenting a collection"

This reverts commit 82f57718ce8ea1241beb5a01aaef90b2ac95d1c0.
Branch: v7.0
https://github.com/mongodb/mongo/commit/f2c5ca4eb62cee34a563d383affbf85e26426682

Comment by Githook User [ 26/Sep/23 ]

Author:

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

Message: Revert "SERVER-79937 Avoid waiting for replication while defragmenting a collection"

This reverts commit b9400522faf69f239a91feb6c0f6f777d42327b4.
Branch: master
https://github.com/mongodb/mongo/commit/fd1acfa9d6a1b282bb502fe0fb24d8886e8fe171

Comment by Githook User [ 21/Aug/23 ]

Author:

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

Message: SERVER-79937 Avoid waiting for replication while defragmenting a collection

(cherry picked from commit b9400522faf69f239a91feb6c0f6f777d42327b4)
Branch: v7.0
https://github.com/mongodb/mongo/commit/82f57718ce8ea1241beb5a01aaef90b2ac95d1c0

Comment by Githook User [ 16/Aug/23 ]

Author:

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

Message: SERVER-79937 Avoid waiting for replication while defragmenting a collection
Branch: master
https://github.com/mongodb/mongo/commit/b9400522faf69f239a91feb6c0f6f777d42327b4

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