diff options
author | Wenbin Zhu <wenbin.zhu@mongodb.com> | 2021-04-22 08:35:21 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-22 18:47:20 +0000 |
commit | a24b761247c996b87b514c513b69588f86a40f1a (patch) | |
tree | 2c212ad492813bed075fe8914eb441e009c4f1a4 /src/mongo/db/repl | |
parent | 2af92ac262fc478255daa7b699da867914710df5 (diff) | |
download | mongo-a24b761247c996b87b514c513b69588f86a40f1a.tar.gz |
SERVER-55473 DBClientBase::_auth returns original status instead of AuthenticationFaile.
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r-- | src/mongo/db/repl/tenant_migration_recipient_service.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/db/repl/tenant_migration_recipient_service.cpp b/src/mongo/db/repl/tenant_migration_recipient_service.cpp index c92a361fe6f..419d68ffd93 100644 --- a/src/mongo/db/repl/tenant_migration_recipient_service.cpp +++ b/src/mongo/db/repl/tenant_migration_recipient_service.cpp @@ -708,15 +708,9 @@ TenantMigrationRecipientService::Instance::_createAndConnectClients() { * 'startApplyingDonorOpTime' * 3) Some other retriable error */ - // TODO (SERVER-55473): Investigate if DBClientBase::_auth can return the original - // status instead of AuthenticationFailed. if (status == ErrorCodes::FailedToSatisfyReadPreference || status == ErrorCodes::Error(kDelayedMajorityOpTimeErrorCode) || - ErrorCodes::isRetriableError(status) || - (status == ErrorCodes::AuthenticationFailed && - status.reason().find( - "network error while attempting to run command 'authenticate'") != - std::string::npos)) { + ErrorCodes::isRetriableError(status)) { return false; } |