diff options
author | Marcos José Grillo Ramirez <marcos.grillo@mongodb.com> | 2023-01-05 12:18:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-05 12:54:38 +0000 |
commit | 4eb914f5f553848e740b95a764171a322bed1b8a (patch) | |
tree | 946b8d245f58e9dcc1be4392cc953b6333405a29 /src/mongo | |
parent | 72a56c27b43595e898ccdec5d859fe72b0d17135 (diff) | |
download | mongo-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.cpp | 3 |
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; } |