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

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

      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

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

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