[SERVER-62901] Fix defragmentation stuck after phase transition Created: 23/Jan/22  Updated: 29/Oct/23  Resolved: 25/Jan/22

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

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

Issue Links:
Related
is related to SERVER-63212 Coverity analysis defect 121399: Unch... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Currently when we transition from phase 2 to phase 3 during BalancerDefragmentationPolicyImpl::selectChunksToMove  we are not waking up the  actionStreamConsumerThread that will remain stuck waiting for the next streamable action even though we already have some actions to perform as part of phase 3. The consequence is that phase 3 will never make progress and the defragmentation won't be able to complete.



 Comments   
Comment by Githook User [ 25/Jan/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-62901 Fix defragmentation stuck after phase transition
Branch: master
https://github.com/mongodb/mongo/commit/f87125b0644546b6eb9ad9d349f6180dd8ca280c

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