summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl
diff options
context:
space:
mode:
authorWenbin Zhu <wenbin.zhu@mongodb.com>2021-04-22 08:35:21 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-22 22:37:24 +0000
commita2f139b19e1a795509ae5f55613ed96234231fb0 (patch)
treec0ca54557053bef8d0075ee7c4584b361767599b /src/mongo/db/repl
parent7c5eecd009a39e4f10dd4ad607cea642a0f10d83 (diff)
downloadmongo-a2f139b19e1a795509ae5f55613ed96234231fb0.tar.gz
SERVER-55473 DBClientBase::_auth returns original status instead of AuthenticationFaile.
(cherry picked from commit a24b761247c996b87b514c513b69588f86a40f1a)
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r--src/mongo/db/repl/tenant_migration_recipient_service.cpp8
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 8dc92694599..26587e78907 100644
--- a/src/mongo/db/repl/tenant_migration_recipient_service.cpp
+++ b/src/mongo/db/repl/tenant_migration_recipient_service.cpp
@@ -710,15 +710,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;
}