ShardServerCatalogCacheLoader doesn't handle threadpool shutdown

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Sharding 2020-08-10
    • 20
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The ShardServerCatalogCacheLoader lambdas when scheduling work on the _threadPool immediately invariant that the status is OK. This is incorrect, because it means that they can't handle the situation where the threadpool is shutting down,which results in the lambda being immediately calling in-line with a status of ShutdownInProgress.

      These lambdas should instead handle this situation properly, eg. by changing the invariant to a uassert and moving it inside the try block, or how other ThreadPool users do it.

              Assignee:
              Randolph Tan
              Reporter:
              Kevin Pulo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: