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

createIndexes should wait for user provided write concern even when returning failure

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-06-15, Execution Team 2020-06-29, Execution Team 2020-07-13, Execution Team 2020-07-27
    • 10

      When an index build fails (for example, because the index is a "2dsphere" index and the collection contains invalid geometry), it can return the failure before the startIndexBuilds oplog entry is majority committed.

      A stepdown at just the right moment can make it appear that the index is still being built (according to the listIndexes command), even though the client has already observed the failure code.

      Waiting for majority commit in the failure case should stop this from happening.

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: