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

If a createIndexes request specifies two identical indexes, a IndexAlreadyExists error is thrown and no index is ever created

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.3 Desired
    • Component/s: Storage
    • Labels:
      None
    • Operating System:
      ALL
    • Sprint:
      Storage NYC 2019-05-06, Execution Team 2019-07-01

      Description

      MultiIndexBlock::init has a for-loop for initializing indexes in-memory and on disk. In the for-loop we call IndexCatalog::prepareSpecForCreate to check for errors: bad spec, already exists.

      The first loop is fine, and sets up the index. The second loop will get an IndexAlreadyExists error from IndexCatalog::prepareSpecForCreate. This error will not get swallowed – we do swallow IndexAlreadyExists errors encountered earlier in the command. The user will get an IndexAlreadyExists error and no index will have been created.

        Attachments

          Activity

            People

            • Assignee:
              dianna.hohensee Dianna Hohensee
              Reporter:
              dianna.hohensee Dianna Hohensee
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: