-
Type: Bug
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: mongorestore
-
None
-
666
Note that the submitter closed their PRs without signing the CLA. Whoever works on this should implement this without looking at those PRs.
Problem Statement/Rationale
mongorestore cannot recover collection containing "\n"
Steps to Reproduce
use python to insert a value into the collection "test.\n"
import pymongo conn = pymongo.MongoClient() conn['test'][chr(10)].save({"test": 1})
use mongodump to dump all database
mongodump --gzip --verbose --archive=1.backup --forceTableScan --oplog
use mongorestore to restore the value
mongorestore --gzip --verbose --archive=1.backup --oplogReplay
Expected Results
find the value in the new instance
use test
db.getCollection("\n").find()
Actual Results
find nothing
rs-0:PRIMARY> use test
switched to db test
rs-0:PRIMARY> db.getCollection("\n").find()
rs-0:PRIMARY>