diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2021-06-21 09:30:56 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-21 12:37:23 +0000 |
commit | 0fc5495fc862bbee21f491e333e7cc22a905e664 (patch) | |
tree | 27dcaf19cc2683e52a39675189e065e7c146cbdb | |
parent | 8cc222b80cadfec0b634a8db86e1ae1da068467b (diff) | |
download | mongo-0fc5495fc862bbee21f491e333e7cc22a905e664.tar.gz |
SERVER-57859 DDL coordinators must indefinitely retry on CommandNotFound error
-rw-r--r-- | src/mongo/db/s/sharding_ddl_coordinator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/sharding_ddl_coordinator.cpp b/src/mongo/db/s/sharding_ddl_coordinator.cpp index a1040e17344..e519eec4787 100644 --- a/src/mongo/db/s/sharding_ddl_coordinator.cpp +++ b/src/mongo/db/s/sharding_ddl_coordinator.cpp @@ -216,7 +216,8 @@ SemiFuture<void> ShardingDDLCoordinator::run(std::shared_ptr<executor::ScopedTas status.isA<ErrorCategory::RetriableError>() || status.isA<ErrorCategory::CancellationError>() || status.isA<ErrorCategory::ExceededTimeLimitError>() || - status == ErrorCodes::Interrupted) && + status == ErrorCodes::Interrupted || + status == ErrorCodes::CommandNotFound) && !token.isCanceled()) { LOGV2_DEBUG(5656000, 1, |