diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2021-09-29 07:18:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-29 07:45:23 +0000 |
commit | 56e12c4070a6febb5e8f089d76b35040fa066f72 (patch) | |
tree | 490f6b79d758583f2ac19e6ae71885191d4b7679 /src/mongo/db/s/sharding_ddl_coordinator.cpp | |
parent | e7203b9a3132ce43290403cbedabc276d4082ebf (diff) | |
download | mongo-56e12c4070a6febb5e8f089d76b35040fa066f72.tar.gz |
SERVER-60266 Retry WriteConcernError exceptions in DDL coordinators
Diffstat (limited to 'src/mongo/db/s/sharding_ddl_coordinator.cpp')
-rw-r--r-- | src/mongo/db/s/sharding_ddl_coordinator.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/s/sharding_ddl_coordinator.cpp b/src/mongo/db/s/sharding_ddl_coordinator.cpp index 87c4fd2cb34..d4992964ee9 100644 --- a/src/mongo/db/s/sharding_ddl_coordinator.cpp +++ b/src/mongo/db/s/sharding_ddl_coordinator.cpp @@ -219,6 +219,7 @@ SemiFuture<void> ShardingDDLCoordinator::run(std::shared_ptr<executor::ScopedTas status.isA<ErrorCategory::RetriableError>() || status.isA<ErrorCategory::CancellationError>() || status.isA<ErrorCategory::ExceededTimeLimitError>() || + status.isA<ErrorCategory::WriteConcernError>() || status == ErrorCodes::Interrupted || status == ErrorCodes::LockBusy || status == ErrorCodes::CommandNotFound) && !token.isCanceled()) { |