IndexBuildsCoordinatorMongod should always delegate index build to thread pool

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Execution Team 2019-11-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-39335 allowed callers of IndexBuildsCoordinator::startIndexBuild() to bypass the thread pool and invoke the index building functions directly. This was necessary to support synchronous index builds during replica set transitions that used DBDirectClient.createIndexes(). Removing this bypass functionality will improve our ability to reason about the environment and context of index builds managed by the IndexBuildsCoordinator.

       

      Currently, the two known callers that call into the IndexBuildsCoordinator synchronously are generateSystemIndexesForExistingCollection() and ShardingCatalogManager::initializeConfigDatabaseIfNeeded().

              Assignee:
              Benety Goh
              Reporter:
              Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: