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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              Eric Milkie
              Reporter:
              Justin Seyster
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: