mongos> sh.status();
Hi,
there is a collection can be find by replica set, but can’t be found by mongos on server A, can be found by mongos on server B
I’m a bit unclear on the exact issue you’re having. Could you post more details:
sh.status()
as suggested by RhysYou mention that the collection exist in some shards, but cannot be found using mongos
. Is the collection supposed to exist, or not?
If your deployment is a sharded cluster, have this collection been dropped in the past? If the collection exists in some shard but not in other, the drop may be unsuccessful in some shards (typically caused by network issues during the drop). You would need to go into each shard and perform the db.Account.drop()
command to ensure that the collection was dropped from all shards.
Please note that after dropping a collection in a sharded cluster, it is recommended to restart all your mongos
processes to ensure that no mongos
still caches the dropped collection.
Best regards,
Kevin
Presumably this is a sharded cluster?What's the output of...
mongos> sh.status();
run sh.status() don't show this database