mongoimport from mongoexport file with --jsonArray in 2.0 is broken
mongoimport only imports 4/10 items in the collection if I use --jsonArray
Repro
MongoDB shell version: 2.0.0
connecting to: test
> db.test_collection.insert(
)
> db.test_collection.insert(
)
> db.test_collection.insert(
)
> db.test_collection.insert(
)
> db.test_collection.insert(
)
> db.test_collection.insert(
)
> db.test_collection.insert(
)
> db.test_collection.insert(
)
> db.test_collection.insert(
)
> db.test_collection.insert(
)
> mongoexport -d test -c test_collection -o test.json --jsonArray
connected to: 127.0.0.1
exported 10 records
> mongoimport -d test -c test_collection --file test.json --jsonArray
connected to: 127.0.0.1
imported 4 objects