summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorMarcos José Grillo Ramirez <marcos.grillo@mongodb.com>2023-01-05 12:18:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-05 12:54:38 +0000
commit4eb914f5f553848e740b95a764171a322bed1b8a (patch)
tree946b8d245f58e9dcc1be4392cc953b6333405a29 /src/mongo
parent72a56c27b43595e898ccdec5d859fe72b0d17135 (diff)
downloadmongo-4eb914f5f553848e740b95a764171a322bed1b8a.tar.gz
SERVER-72188 Retry index cache get on ReadThroughCacheLookupCanceled error
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/s/catalog_cache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/catalog_cache.cpp b/src/mongo/s/catalog_cache.cpp
index 4c261b8b9cb..5babc752314 100644
--- a/src/mongo/s/catalog_cache.cpp
+++ b/src/mongo/s/catalog_cache.cpp
@@ -499,7 +499,8 @@ boost::optional<GlobalIndexesCache> CatalogCache::_getCollectionIndexInfoAt(
} catch (const DBException& ex) {
bool isCatalogCacheRetriableError = ex.isA<ErrorCategory::SnapshotError>() ||
ex.code() == ErrorCodes::ConflictingOperationInProgress ||
- ex.code() == ErrorCodes::QueryPlanKilled;
+ ex.code() == ErrorCodes::QueryPlanKilled ||
+ ex.code() == ErrorCodes::ReadThroughCacheLookupCanceled;
if (!isCatalogCacheRetriableError) {
throw;
}