-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: mongorestore
-
None
A recent change as part of 3.4.5 seems to have caused an issue parsing a command used by mongorestore. The line affected can be seen here: https://github.com/mongodb/mongo-tools/blob/master/test/qa-tests/jstests/restore/extended_json_metadata.js#L23
The actual command is here: https://github.com/mongodb/mongo-tools/blob/master/test/qa-tests/jstests/restore/testdata/dump_extended_json_options/test/changelog.metadata.json
{ "options" : { "create" : "changelog", "size" : { "$numberLong" : "10000000" }, "capped" : true }, "indexes" : [ { "v" : 1, "key" : { "_id" : { "$numberLong" : "1"}}, "ns" : "config.changelog", "name" : "_id_" }, {"v":1,"key":{"pos":"2d"},"name":"position_2d","ns":"config.changelog","min":{"$numberLong":"0"},"max":{"$numberLong":"1000"},"bits":{"$numberLong":"32"}} ] }
The issue can be seen in this task
[js_test:extended_json_metadata] 2017-06-15T11:23:49.047+0000 sh56645| 2017-06-15T11:23:49.047+0000 preparing collections to restore from [js_test:extended_json_metadata] 2017-06-15T11:23:49.047+0000 sh56645| 2017-06-15T11:23:49.047+0000 reading metadata for test.changelog from jstests/restore/testdata/dump_extended_json_options/test/changelog.metadata.json [js_test:extended_json_metadata] 2017-06-15T11:23:49.048+0000 sh56645| 2017-06-15T11:23:49.048+0000 Failed: test.changelog: error creating collection test.changelog: error running create command: Parsed command object contains duplicate top level key: create
This must have been a server change since rerunning old tests that passed in evergreen now consistently create a failure.
- is related to
-
TOOLS-1718 duplicate top level key: create
- Closed
-
TOOLS-1934 duplicate top level key: create
- Accepted
- related to
-
SERVER-6947 db.createCollection creates undefined fields which cause mongorestore to fail
- Closed