Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1699

3.4.5 Server causing crash in extended_json_metadata.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.6, 3.6.0-rc0
    • 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.

            Assignee:
            william.banfield William Banfield
            Reporter:
            william.banfield William Banfield
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: