Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62823

Return IndexAlreadyExists for clustered index in IndexCatalogImpl validation

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2022-01-24, Execution Team 2022-02-07

      Right now, there are several places in the code that check whether an index with "clustered" is valid (here and here). By the time we get to _doesSpecClonflictWithExisting, _isSpecOK should already have confirmed a spec with "clustered" is valid with the collection specifications (and thus the clustered index specifications if the collection is clustered)

       

      Additionally, IndexCatalogImpl::_doesSpecConflictWithExisting expects IndexAlreadyExists to be returned for indexes that already exist. Make this consistent for a clustered index

            Assignee:
            haley.connelly@mongodb.com Haley Connelly
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: