summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2021-11-18 09:34:21 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-18 10:04:25 +0000
commit4105bd383b018a7b3e1835767cde75584e5e0bae (patch)
treede006b2a440ac19dbe810a33d2736c1be14b84ea
parent38c21f135436e691cd95577e4e81ec87fd8f6879 (diff)
downloadmongo-4105bd383b018a7b3e1835767cde75584e5e0bae.tar.gz
SERVER-48504 Combination of StaleShardVersion and ShardNotFound exception make the ChunkManagerTargeter crash
-rw-r--r--src/mongo/s/write_ops/chunk_manager_targeter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/write_ops/chunk_manager_targeter.cpp b/src/mongo/s/write_ops/chunk_manager_targeter.cpp
index 44415122efa..46ad3295354 100644
--- a/src/mongo/s/write_ops/chunk_manager_targeter.cpp
+++ b/src/mongo/s/write_ops/chunk_manager_targeter.cpp
@@ -754,7 +754,7 @@ Status ChunkManagerTargeter::refreshIfNeeded(OperationContext* opCtx, bool* wasC
//
if (_needsTargetingRefresh) {
- // Reset the field
+ _remoteShardVersions.clear();
_needsTargetingRefresh = false;
// If we couldn't target, we might need to refresh if we haven't remotely refreshed