[SERVER-10384] use command "db.test.getShardDistribution() " cannot display the data chunks imformation of shards Created: 31/Jul/13  Updated: 10/Dec/14  Resolved: 04/Apr/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.4.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Della He Assignee: Unassigned
Resolution: Done Votes: 0
Labels: replicaset, sharding
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

three servers,six shards. Per server has six shards,and per shard exist on three servers


Attachments: File repair before.png     File repair later.png    
Operating System: Linux
Participants:

 Description   

Hi,
I use command "db.test.getShardDistribution() " to query data chunks imformation of shards,but there is no some imformation with error. See the "repair before.png".
Then,I use command "db.repairDatabase()" to repair the test database,and use "db.test.getShardDistribution() " to view again.While,there is one shard whose data has lost.See the "repair later.png".

So,what cause the command "db.test.getShardDistribution()" error?
And,whether the command "db.repairDatabase()" is always cause data loss?



 Comments   
Comment by Stennie Steneker (Inactive) [ 12/Aug/13 ]

Hi Della,

Can you please attach the log file from the primary of shard sh1 covering the period before you ran the repair command? There isn't enough information yet to determine why the shard information could not be displayed.

Also, it is unclear from your environment description whether your shards are backed by replica sets or standalone servers. Can you confirm ?

Thanks,
Stephen

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