[SERVER-34504] sh.getBalancerState does not consider the {mode:off} balancer setting Created: 16/Apr/18  Updated: 06/Dec/22  Resolved: 12/Nov/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.4.14, 3.6.4, 3.7.3
Fix Version/s: 4.1 Desired

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Duplicate Votes: 0
Labels: max-triage, neweng, sharding-interns-2019
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-49350 Modernize shell helper getBalancerSta... Closed
Related
related to SERVER-34498 mongo balancer often won't start back up Closed
Assigned Teams:
Sharding
Operating System: ALL
Participants:

 Description   

The sh.getBalancerState helper only looks at the stopped value of the config.settings document and ignores the mode setting we introduced in 3.4.

Ideally it should not be inspecting the config.settings directly, but should use the balancerStatus command.


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