Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6961

v2.2 mongodump is incompatible with pre-v2.2 mongorestore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Done
    • 2.2.0
    • 2.3.1
    • Tools
    • None
    • Fully Compatible
    • ALL

    Description

      mongodump's file layout is different in v2.2 than in v2.0 in a way that will lead to undesirable results if somebody happens to run a v2.0 mongorestore on a v2.2 mongodump layout. In particular, the new mongodump doesn't produce a system.indexes.bson for each database, and old mongorestore doesn't know what to do with the <collection>.metadata.json, so restoring with an old mongorestore will not retain indexes that existed in the dumped database.

      If we want to call this a regression, then a fix would be to have mongodump additionally create the system.indexes.bson file.

      Alternatively we could call this a documentation bug and update the release notes.

      Attachments

        Issue Links

          Activity

            People

              sverch Shaun Verch
              richard.kreuter Richard Kreuter (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: