-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: 6.0.9
-
Component/s: None
-
None
-
Sharding EMEA
-
ALL
-
-
Sharding EMEA 2023-08-21
I understand that enableSharding() for a database is not required in 6.0; However, sharded databases are always showing "partitioned: false" in sh.status().
Regardless of whether a database is enabled for sharding explicitly by enableSharding(<dbname>) (which isn't required as mentioned earlier) or by directly sharding the database.collection as described here: https://www.mongodb.com/docs/manual/reference/method/sh.shardCollection/#sh.shardcollection--
The database reports is always reporting "partitioned: false" in sh.status().
Having a database reporting "partitioned: false" when it has actually been sharded prevents some commands from reporting correctly such as:
1) Finding what databases are actually sharded:
db.getSiblingDB('config').databases.find({partitioned: true})
2) Finding number of bytes in unsharded collections across the cluster as shown in this Knowledge Base article:
https://kb.corp.mongodb.com/article/000018993
Assuming this is a bug.
- is related to
-
SERVER-60926 Make enableSharding command optional
- Closed
- related to
-
SERVER-64045 Remove partitioned field from DatabaseType constructor
- Closed