I have a sharded cluster with 3 shards. By mistake the insert query was run on one of the shard and not on the mongos. But when I connect to mongos, my total count is increased for that sharded collection but I am not able to find that inserted records.
How can I move that record into chunks which can be visible form mongos?
You really cannot.
Just rerun the insert through mongos.
You have some "orphaned" documents, you can clean those up with
"cleanupOrphaned" command from mongod (of the shard that got the
mistaken insert).
http://docs.mongodb.org/ manual/reference/command/ cleanupOrphaned/
Just rerun the insert through mongos.
You have some "orphaned" documents, you can clean those up with
"cleanupOrphaned" command from mongod (of the shard that got the
mistaken insert).
http://docs.mongodb.org/
Thanks Asya.
That was really helpful.
댓글 없음:
댓글 쓰기