[DOCS-10746] Comment on: "manual/reference/config-database" Created: 31/Aug/17  Updated: 29/Oct/23  Resolved: 25/Sep/19

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ian Springer Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.com/manual/reference/config-database/
Referrer: https://www.google.com/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Screen Resolution: 2560 x 1440


Participants:
Days since reply: 4 years, 20 weeks ago

 Description   

From what I can see from my Mongo 3.4 install, this line is incorrect:

When a databases have sharding enabled, the primary field holds the name of the primary shard.

The "primary" field contains the a shard name whether or not sharding is enabled for the database. The only reliable way to check if sharding is enabled is if the "partitioned" field has a value of true (as documented in https://docs.mongodb.com/manual/tutorial/view-sharded-cluster-configuration/).

For example:

mongos> db.databases.find()
{ "_id" : "db1", "primary" : "rs_prod_shard1", "partitioned" : true }
{ "_id" : "db2", "primary" : "rs_prod_shard1", "partitioned" : false }

Note, for the "db2" database, the "primary" field has a value, yet the "partitioned" field is false.



 Comments   
Comment by Githook User [ 25/Sep/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-10746: Updates for config database
Branch: v3.4
https://github.com/mongodb/docs/commit/2021a8ff310fa4f4ad9aba15e649889fff046777

Comment by Githook User [ 25/Sep/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-10746: Updates for config database
Branch: v3.6
https://github.com/mongodb/docs/commit/e0f228099c9fbb8bd395e556102a1d5493f24388

Comment by Githook User [ 25/Sep/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-10746: Updates for config database
Branch: v4.0
https://github.com/mongodb/docs/commit/a3c83f85dd3e1249b498ce89117b936207a5fcf7

Comment by Githook User [ 25/Sep/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-10746: Updates for config database
Branch: master
https://github.com/mongodb/docs/commit/5697937064041a3d4010bb98bdb24c101e15623b

Generated at Thu Feb 08 08:01:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.