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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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 (Inactive)
            Reporter:
            Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: