I have windows 10 on my system with enough storage.
I have a database that is 208 GB in a file with the .agz
extension.
When I import the database into my MongoDB, I face the following error:
2021-09-12T20:00:49.930+0430 2021-09-12T20:00:52.622+0430 smartshark_2_1.clone_instance 383GB 2021-09-12T20:00:52.622+0430
finished restoring smartshark_2_1.clone_instance (989924000 documents, 0 failures) 2021-09-12T20:00:52.622+0430
Failed: smartshark_2_1.clone_instance: error restoring from archive 'D:\MSRChallenge2022\smartshark_2_1.agz': (InvalidBSON) incorrect BSON length in element with field name 'clone_class_metrics.CE' in object with _id: ObjectId('5cbad340504acf99a43e3724') 2021-09-12T20:00:52.622+0430
989924000 document(s) restored successfully. 0 document(s) failed to restore.
This error appears after I imported 383 GB of data from the database.
To import the database, I wrote mongorestore --gzip --archive=D:\my-directory\smartshark_2_1.agz
in the cmd.
smartshark_2_1.agz is my database.
How can I fix the error? I downloaded the database from the following link: https://smartshark.github.io/dbreleases/