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

autoIndexId:false is not supported in 4.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.0.10
    • Fix Version/s: 100.0.0
    • Component/s: mongorestore
    • Labels:

      Description

      autoIndexId:false support was removed in SERVER-8237 for 4.0:

      Starting in MongoDB 4.0, you cannot set the option autoIndexId to false when creating collections in databases other than the local database.

      https://docs.mongodb.com/v4.0/reference/command/create/

      This may cause issues restoring data from previous server versions to 4.0. What should mongorestore should do in this situation?

      Update: Answer: omit autoIndexId when creating collections.

        Attachments

          Activity

            People

            Assignee:
            varsha.subrahmanyam Varsha Subrahmanyam
            Reporter:
            david.golden David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: