Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10523

Docs for SERVER-29191: Dropping an index named "*" is ambiguous because createIndexes permits an index to be named "*"

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.10
    • None
    • Server

    Description

      Documentation Request Summary:

      createIndexes now disallows creation of indexes named '*' (literally a single asterisk). dropIndexes will not allow deletion of such indexes either, except by dropping a collection or all indexes for a collection.

      Engineering Ticket Description:

      Prior to the changes from 6fd95f8 as part of SERVER-28200, the oplog entry for the "dropIndexes" command represented the index using its key pattern rather than its name. Dropping an index named "*" is interpreted by the replication subsystem as dropping all indexes and can cause the primary and secondaries not to have the same set of indexes.

      CC judah.schvimer

      Attachments

        Activity

          People

            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 19 weeks, 4 days ago