[SERVER-18506] Balancer section of printShardingStatus should respect passed-in configDB Created: 17/May/15  Updated: 13/Oct/15  Resolved: 10/Jul/15

Status: Closed
Project: Core Server
Component/s: Sharding, Shell
Affects Version/s: 3.0.0, 3.1.0
Fix Version/s: 3.0.7, 3.1.6

Type: Bug Priority: Major - P3
Reporter: Kevin Pulo Assignee: Kevin Pulo
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-14882 Modify sh.status to include output fr... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Sharding 6 07/17/15
Participants:

 Description   

Support often needs to analyse dumps of the config database. This usually involves running sh.status()/printShardingStatus() and passing in a reference to the mongorestored configDB, e.g. printShardingStatus(db.getSiblingDB("the_config_dump"))

However, the "Balancer" section (added in SERVER-14882 to show balancer status, window, and recent activity) does not use the given configDB. This is because it has hard-coded references to the database named "config".

This means that if a database with a name other than "config" is passed in, then most of the output will relate to the correct db, but the balancer section will relate to the db named "config", which could have completely different details. Furthermore, if there is no db named "config" then printShardingStatus() will print mysterious warnings about config.settings and/or config.locks being missing, even though they are present in the given configDB. This is all very confusing and misleading when trying to analyse a config dump.



 Comments   
Comment by Githook User [ 23/Sep/15 ]

Author:

{u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}

Message: SERVER-18506: Make the balancer section of printShardingStatus() respect the passed-in configDB

(cherry picked from commit e8251c03db4c43d7127c1e8d8e306d8bfb688b0d)
Branch: v3.0
https://github.com/mongodb/mongo/commit/e3824f110544fa5d21e637f3559290f6428b5b28

Comment by Githook User [ 10/Jul/15 ]

Author:

{u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}

Message: SERVER-18506: Make the balancer section of printShardingStatus() respect the passed-in configDB
Branch: master
https://github.com/mongodb/mongo/commit/e8251c03db4c43d7127c1e8d8e306d8bfb688b0d

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