diff options
author | Matthew Russotto <matthew.russotto@mongodb.com> | 2022-02-03 11:28:00 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-04 20:27:51 +0000 |
commit | 41d6fd851b0a7fba0966cb333386118eb9af4ce9 (patch) | |
tree | a05219898154e22430a723ef6b13865878b24ddf | |
parent | 14d8900dd75a704b984f13a6f2e705fabe82112e (diff) | |
download | mongo-41d6fd851b0a7fba0966cb333386118eb9af4ce9.tar.gz |
SERVER-63237 Use error code name for transient backup cursor failure
-rw-r--r-- | src/mongo/db/repl/tenant_migration_recipient_service.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/repl/tenant_migration_recipient_service.cpp b/src/mongo/db/repl/tenant_migration_recipient_service.cpp index 7868ecac516..72029bf91c7 100644 --- a/src/mongo/db/repl/tenant_migration_recipient_service.cpp +++ b/src/mongo/db/repl/tenant_migration_recipient_service.cpp @@ -2579,15 +2579,14 @@ SemiFuture<void> TenantMigrationRecipientService::Instance::run( return _getDonorFilenames(token); }) .until([](Status status) { - if (status.code() == 50915) { + if (status.code() == + ErrorCodes::BackupCursorOpenConflictWithCheckpoint) { LOGV2_DEBUG(6113008, 1, "Retrying backup cursor creation after error", "status"_attr = status); - // In the event of 50915: A checkpoint took place while - // opening a backup cursor, we should retry and *not* cancel - // migration. See https://jira.mongodb.org/browse/SERVER-61964 - // TODO (SERVER-61964): remove retry + // A checkpoint took place while opening a backup cursor. We + // should retry and *not* cancel migration. return false; } |