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

Strip unsupported legacy index options

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 100.0.0
    • Component/s: mongorestore
    • Labels:
    • Backport Requested:
      v4.2
    • Documentation Changes:
      Needed
    • Documentation Changes Summary:
      Docs should describe how the tool attempts to recover from legacy options, including any options which will be dropped on restore.

      Description

      The fix in TOOLS-2379 for old indexes relies on applyOps, which isn't allowed by the MongoDB Atlas shared tier proxy. To address this, mongorestore should ensure that only valid, supported index options are sent. A white list of options may be found in index_descriptor.h (though not all appear to be documented options).

      Open question: should this behavior require a flag? Or should it be a fallback only if the initial creation errors? The goal either way should be to allow someone to use a modern mongorestore to restore a legacy dump to a legacy server.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tim.fogarty Tim Fogarty
              Reporter:
              david.golden David Golden
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: