Details
Description
We had an unsharded mongodb instance, which had a collection full of documents(~100M). We created an index in that collection in order to shard it.
We enabled sharding in that node(primary), and also added another empty node in the shard grid (secondary). Everything was looking fine, but then we realize that we consistently starting losing documents from the chunk that was gettings transfered:
http://pastebin.slackadelic.com/p/8LxWaY81.html
In the attachment, i have both mongod running a count in the chunk criteria and one of them is losing documents and the other is not getting any documents.
Also I had checked the logs in both mongod servers and everthing was looking fine:
http://pastebin.slackadelic.com/p/LOsexH82.html this is from primary shard.
http://pastebin.slackadelic.com/p/ZvgQHE51.html this is from secondary shard.
So is that an issue? was this fixed in version 2.2 already?
Also there is a question in SO about it: http://stackoverflow.com/questions/11768679/am-i-losing-data-when-i-am-sharding-my-existent-collection/