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

createIndexes on local database collections should not use two phase index build + commit quorum for building indexes.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-03-09
    • 25

      When the commit quorum is turned on for the index build, the primary will always wait for secondaries "ready to commit" votes before committing the index build. Since the index build was built on local collection, we don't replicate the startIndexBuild oplog entry to secondaries. As a result, secondaries won't be able to build the index build and participate in voting process. This can lead to index build on primary to get hang forever.

      I would expect this ticket to make sure that index build on local db collections/non-replicated databases should not use commit quorum. And, should throw an error to user if the user tries to run createIndexes cmd on non-replicated databases with commit quorum options set.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: