[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: |
|
||||||||||||||||
| 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. |