Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Done
-
None
-
None
-
Two shards:shard01,shard02
*Location*: https://docs.mongodb.com/manual/reference/method/db.collection.getShardDistribution/
*User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
*Referrer*: https://www.baidu.com/link?url=Ew6FyrPMlY37rUyp90UX8X7DsebDUkHmK7FPvF_K_0G5Fk1bm6dmAh2Hj94gXJrEQPp5Vh0SrKsoTu2ejUkrzQjAFin-u-AVm2RIwN6BSkqRDwLGDnuopL1Db3tLTNzO&wd=&eqid=add8ccbf000bfaa30000000357ae5c70
*Screen Resolution*: 1366 x 768
Two shards:shard01,shard02 *Location*: https://docs.mongodb.com/manual/reference/method/db.collection.getShardDistribution/ *User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 *Referrer*: https://www.baidu.com/link?url=Ew6FyrPMlY37rUyp90UX8X7DsebDUkHmK7FPvF_K_0G5Fk1bm6dmAh2Hj94gXJrEQPp5Vh0SrKsoTu2ejUkrzQjAFin-u-AVm2RIwN6BSkqRDwLGDnuopL1Db3tLTNzO&wd=&eqid=add8ccbf000bfaa30000000357ae5c70 *Screen Resolution*: 1366 x 768
Description
I run into a problem :
my collection was enabled sharding,i can see the Chunk distribution through sh.status(),and this is output:
chunks:
shard01 3
shard02 16
But i can not see the details of shard01 through db.collection.getShardDistribution(),here is out put:
Shard shard02 at shard02/mongo01:27018,mongo02:27018
data : 418.32MiB docs : 141345 chunks : 16
estimated data per chunk : 26.14MiB
estimated docs per chunk : 8834
Totals
data : 418.32MiB docs : 141345 chunks : 16
Shard shard02 contains 100% data, 100% docs in cluster, avg obj size on shard : 3KiB
Is it a bug or something? Any help would means a lot.
Attachments
Issue Links
- related to
-
DOCS-12839 The Build Indexes on Replica Sets document must include the disableLogicalSessionCacheRefresh=true for standalone instances for MongoDB 3.6+
-
- Closed
-