lunedì 14 dicembre 2015

MongoDB Tools 3.0.7 - mongorestore bug


Mongorestore bug:

mongorestore --drop --host <HOST> -v /dump/DB_FOLDER

Command result:

Failed: restore error: komparu_product_dev.product: error restoring from dump/<dbame>/>collection-name>.bson: insertion error: EOF


FIX:

mongorestore --drop batchSize=1 --host <HOST> -v /dump/DB_FOLDER