-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
Sharding 2020-08-10
-
20
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.
- is related to
-
SERVER-47972 maxTimeMS set on hedged requests does not give shards enough time to refresh
- Closed
-
SERVER-39965 Make OutOfLineExecutor return a Status from schedule()
- Closed