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

IndexBuildsCoordinatorMongod should always delegate index build to thread pool

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Storage
    • Labels:
      None

      Description

      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().

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: