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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2019-12-02, Execution Team 2019-12-16
    • 20

      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.

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

              Created:
              Updated:
              Resolved: