[SERVER-29379] sh.isBalancerRunning() is failing at config server Created: 25/May/17 Updated: 27/Oct/23 Resolved: 21/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Hasitha Kanchana [X] | Assignee: | Kaloian Manassiev |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
Hello Team, My MongoDB sharded environment is 3.2.11 and I'm trying to execute sh.isBalancerRunning() at config server. My backup script is checking balancer status before start the config DB backup process. The script is trying to connect config server and execute sh.isBalancerRunning() and get the result. Could you please tell me how could I check the balancer status from config server without connections MongoS Here is the error: configsvr> sh.isBalancerRunning() Thanks, |
| Comments |
| Comment by Kaloian Manassiev [ 19/Jun/17 ] |
|
Hi Hasitha.Kanchana@pearson.com, The config server is an internal detail of the cluster and as such its APIs and data format are subject to potentially breaking changes across releases. Because of this, we do not want to encourage external users and utilities to directly access its state or make calls to it. The workaround for what you want to achieve would be to spawn a temporary mongos instance and use that for inspecting the balancer state. Hope this helps. Best regards, |
| Comment by Mark Agarunov [ 09/Jun/17 ] |
|
Hello Hasitha.Kanchana@pearson.com, Thank you for the report. We have discussed the behavior you've described and the changes necessary for this so I've set the fixVersion to "Needs Triage" for this improvement to be scheduled against our currently planned work. Updates will be posted on this ticket as they happen. Thanks, |