summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding/resharding_future_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_future_util.h')
-rw-r--r--src/mongo/db/s/resharding/resharding_future_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_future_util.h b/src/mongo/db/s/resharding/resharding_future_util.h
index 0bb858a963c..78847350d0c 100644
--- a/src/mongo/db/s/resharding/resharding_future_util.h
+++ b/src/mongo/db/s/resharding/resharding_future_util.h
@@ -131,7 +131,8 @@ public:
status.isA<ErrorCategory::CursorInvalidatedError>() ||
status == ErrorCodes::Interrupted ||
status.isA<ErrorCategory::CancellationError>() ||
- status.isA<ErrorCategory::NotPrimaryError>()) {
+ status.isA<ErrorCategory::NotPrimaryError>() ||
+ status.isA<ErrorCategory::NetworkTimeoutError>()) {
// Always attempt to retry on any type of retryable error. Also retry on errors
// from stray killCursors and killOp commands being run. Cancellation and
// NotPrimary errors may indicate the primary-only service Instance will be shut