-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Environment:MongoDB 5.0.0-rc1
-
Fully Compatible
-
ALL
-
v5.0
-
Sharding EMEA 2021-07-12
Example:
/var/lib/mongodb-mms-automation/mongodb-linux-x86_64-5.0.0-rc1-ent/bin/mongo --port 57098 MongoDB shell version v5.0.0-rc1 ... MongoDB Enterprise mongos> db.bucket.chunks.getShardDistribution() Shard m50-sh_0 at m50-sh_0/deployment-1.example.com:57000 data : 1.4GiB docs : 4197 chunks : 0 estimated data per chunk : 0B estimated docs per chunk : 0 Shard m50-sh_1 at m50-sh_1/deployment-2.example.com:57001 data : 795.56MiB docs : 2327 chunks : 0 estimated data per chunk : 0B estimated docs per chunk : 0 Shard m50-sh_4 at m50-sh_4/deployment-2.example.com:57004 data : 858.12MiB docs : 2510 chunks : 0 estimated data per chunk : 0B estimated docs per chunk : 0 Shard m50-sh_3 at m50-sh_3/deployment-1.example.com:57003 data : 828.38MiB docs : 2423 chunks : 0 estimated data per chunk : 0B estimated docs per chunk : 0 Shard m50-sh_5 at m50-sh_5/deployment-3.example.com:57005 data : 795.22MiB docs : 2326 chunks : 0 estimated data per chunk : 0B estimated docs per chunk : 0 Shard m50-sh_2 at m50-sh_2/deployment-3.example.com:57002 data : 857.1MiB docs : 2507 chunks : 0 estimated data per chunk : 0B estimated docs per chunk : 0 Totals data : 5.43GiB docs : 16290 chunks : 0 Shard m50-sh_0 contains 25.76% data, 25.76% docs in cluster, avg obj size on shard : 350KiB Shard m50-sh_1 contains 14.28% data, 14.28% docs in cluster, avg obj size on shard : 350KiB Shard m50-sh_4 contains 15.4% data, 15.4% docs in cluster, avg obj size on shard : 350KiB Shard m50-sh_3 contains 14.87% data, 14.87% docs in cluster, avg obj size on shard : 350KiB Shard m50-sh_5 contains 14.27% data, 14.27% docs in cluster, avg obj size on shard : 350KiB Shard m50-sh_2 contains 15.38% data, 15.38% docs in cluster, avg obj size on shard : 350KiB
I.e., all the chunks : 0
This is presumably due to the change in MongoDB 5.0 config.chunks collection no longer having the "ns" field.