I had an HDD malfunction on a Mongo node. After running
mongod --repair I was able to dump the needed collection with
mongodump and move it to another server.
However, some records appear to be malformed and
mongorestore fails with:
assertion: 10331 EOO Before end of object
I restored the collection with
mongorestore --noobjcheck and now I want to remove the malformed records from the collection.
How do I do that? Is there a way to force Mongo to check itself or must I do it manually?