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

mongorestore needs to pre-process special keys for extended json when restoring metadata

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc5
    • Affects Version/s: None
    • Component/s: None
    • None

      create an index with a type that is only expressed in extended json, then dump it with mongodump.

      db.test.createIndex({x: NumberLong(1)})
      

      Then try to restore it with mongorestore, and it will try to create the index spec with literally

      {"$numberLong":1}

      as the direction (which is invalid) and fail.

            Assignee:
            kyle.erf Kyle Erf
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: