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

Do not check duplicate key constraints for index builds on secondaries

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.7
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2018-12-31, Storage NYC 2019-01-14
    • 6

    Description

      If a background index build on a secondary finishes in the middle of a batch, while there are temporarily duplicate key violations on an index, it will fail.

      This did not used to be a problem, but now that we perform duplicate key checks at completion, this error is more likely to occur.

      This may involve taking the PBWM lock to so index build completion does not conflict with any replication batches.

      Attachments

        Activity

          People

            louis.williams@mongodb.com Louis Williams
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: