Document count mismatch after mongorestore


I experienced a documents count mismatch after dumping a collection with mongodump and restoring it into another db with mongorestore.
After repeating the operation I found out that the dump was already exporting more documents than the initial total count (please see below)


I found information on some collection metadata broken after an unexpected stop of the mongo server in this link SERVER-19472.

Have anyone in the community gone through a similar issue? Is it possible that it would cause also differences when fetching records using “find”? (e.g. missing records in the results)

Any information would be great!


1 Like