[SERVER-75500] WaitForEndOfDefragmentation should not wait for the collection to be balanced Created: 30/Mar/23  Updated: 29/Oct/23  Resolved: 31/Mar/23

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

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

Issue Links:
Depends
is depended on by SERVER-71917 Update defragmentation tests to use v... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2023-04-03
Participants:

 Description   

Currently, during waitForEndOfDefragmentation, we are calling awaitCollectionBalance to make sure that the balancerCompliant flag is correct. However, this function is used before checking the defragmentation state in the different defragmentation tests (1, 2), so we don't really want to enable the balancer and wait for balanced. Since we only want to know that the first compliance violation is not defragmenting chunks, we don't actually care if balancer compliant was returned too soon.



 Comments   
Comment by Githook User [ 31/Mar/23 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-75500 WaitForEndOfDefragmentation should not wait for the collection to be balanced
Branch: master
https://github.com/mongodb/mongo/commit/cba935effa931678d3f707c4cfd02b70268f9569

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