[SERVER-72820] Retry disable and enable of balancer in awaitCollectionBalance Created: 13/Jan/23  Updated: 29/Oct/23  Resolved: 28/Feb/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: Antonio Fuschetto
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
causes SERVER-76335 assertRetryableCommandWorked should c... Closed
Related
is related to SERVER-59891 Replace the coverage from sharding_co... Backlog
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2023-03-06
Participants:
Linked BF Score: 35

 Description   

As part of the shell helper function awaitCollectionBalance, the balancer is turned off to wait for orphan cleanup and then the balancer is reenabled. Turning on and off the balancer is done via writes to config.collections, which are not retriable since they are in the config collection.

We should retry these commands (1, 2) in case of notPrimary errors so that this helper can still be used in config stepdown suites.



 Comments   
Comment by Githook User [ 28/Feb/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-72820 Retry disable/enable per-collection balancing in case of retryable errors
Branch: master
https://github.com/mongodb/mongo/commit/c0f9f5c10f68e89bb11f0c75bc9e7525dd668656

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