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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0-rc5
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: