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 "*"

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.10
    • Component/s: Server
    • Labels:

      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

          Issue Links

            Activity

              People

              Assignee:
              pavithra.vetriselvan Pavithra Vetriselvan
              Reporter:
              emily.hall Emily Hall
              Participants:
              Last commenter:
              Jonathan Dahl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                3 years, 4 weeks, 4 days ago
                Date of 1st Reply: