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

ShardServerCatalogCacheLoader::waitForCollectionFlush should be interruptible

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.2, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Sharding EMEA 2021-07-12, Sharding EMEA 2021-07-26
    • 124

      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

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

              Created:
              Updated:
              Resolved: