summaryrefslogtreecommitdiff
path: root/src/mongo/s/write_ops/batch_write_exec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/write_ops/batch_write_exec.cpp')
-rw-r--r--src/mongo/s/write_ops/batch_write_exec.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/s/write_ops/batch_write_exec.cpp b/src/mongo/s/write_ops/batch_write_exec.cpp
index 99ed846f7f2..b61b8e01dbd 100644
--- a/src/mongo/s/write_ops/batch_write_exec.cpp
+++ b/src/mongo/s/write_ops/batch_write_exec.cpp
@@ -280,7 +280,7 @@ void BatchWriteExec::executeBatch(OperationContext* opCtx,
if (responseStatus.isOK()) {
TrackedErrors trackedErrors;
trackedErrors.startTracking(ErrorCodes::StaleConfig);
- trackedErrors.startTracking(ErrorCodes::StaleShardVersion);
+ trackedErrors.startTracking(ErrorCodes::OBSOLETE_StaleShardVersion);
trackedErrors.startTracking(ErrorCodes::StaleDbVersion);
trackedErrors.startTracking(ErrorCodes::TenantMigrationAborted);
@@ -321,7 +321,7 @@ void BatchWriteExec::executeBatch(OperationContext* opCtx,
auto staleConfigErrors = trackedErrors.getErrors(ErrorCodes::StaleConfig);
{
const auto& staleShardVersionErrors =
- trackedErrors.getErrors(ErrorCodes::StaleShardVersion);
+ trackedErrors.getErrors(ErrorCodes::OBSOLETE_StaleShardVersion);
staleConfigErrors.insert(staleConfigErrors.begin(),
staleShardVersionErrors.begin(),
staleShardVersionErrors.end());
@@ -440,6 +440,7 @@ void BatchWriteExec::executeBatch(OperationContext* opCtx,
{logv2::LogComponent::kShardMigrationPerf},
"Finished post-migration commit refresh on the router with error",
"error"_attr = redact(ex));
+
// It's okay if we can't refresh, we'll just record errors for the ops if needed
LOGV2_WARNING(22911,
"Could not refresh targeter due to {error}",