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

ShardServerCatalogCacheLoader::waitForCollectionFlush should be interruptible

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.2, 5.1.0-rc0
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Sharding EMEA 2021-07-12, Sharding EMEA 2021-07-26
    • 124

    Description

      ShardServerCatalogCacheLoader::waitForCollectionFlush calls waitForActiveTaskCompletion which does an uninterruptible wait. This can lead to deadlocks when stepping down.
      The same pattern exists for ShardServerCatalogCacheLoader::waitForDatabaseFlush.

      We should make these waits interruptible

      Attachments

        Issue Links

          Activity

            People

              jordi.serra-torrens@mongodb.com Jordi Serra Torrens
              jordi.serra-torrens@mongodb.com Jordi Serra Torrens
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: