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

Replicate startIndexBuild oplog entry in the same thread as the index build.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.3
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2019-12-02, Execution Team 2019-12-16
    • 20

    Description

      We replicate the "startIndexBuild" oplog entry on the caller thread, then schedule the index build task on a thread pool. This leads to a deadlock scenario described in SERVER-44250. That ticket will fix the issue with a mutex, but it depends on the internal queuing implementation of the thread pool.

      To guarantee index builds are scheduled correctly, we should really replicate the oplog entry on the index build thread, rather than the caller.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: