SERVER-120971 Allow HostUnreachable in FCVUpgradeDowngradeInBackground in stepdown suites (#49085)

GitOrigin-RevId: 85d7378f44fb4c7d6350cf297160656fe9b61d37
This commit is contained in:
Joan Bruguera Micó (at MongoDB)
2026-03-06 08:34:05 +00:00
committed by MongoDB Bot
parent af9480c34f
commit 058e609f3c
3 changed files with 14 additions and 0 deletions

View File

@@ -86,6 +86,10 @@ executor:
skipEnforceFastCountOnValidate: true
- class: CheckOrphansDeleted
- class: FCVUpgradeDowngradeInBackground
shell_options:
global_vars:
TestData:
runningWithConfigStepdowns: true
- class: CleanEveryN
n: 20
matrix_suite: true

View File

@@ -63,6 +63,10 @@
skipEnforceFastCountOnValidate: true
- class: CheckOrphansDeleted
- class: FCVUpgradeDowngradeInBackground
shell_options:
global_vars:
TestData:
runningWithConfigStepdowns: true
- class: CleanEveryN
n: 20

View File

@@ -34,6 +34,12 @@ const sendFCVUpDown = function (ver) {
jsTest.log.info("setFCV: Temporarily unavailable", {e});
return;
}
if (e.code === ErrorCodes.HostUnreachable && TestData.runningWithConfigStepdowns) {
// The mongos may exhaust its retries due to having consecutive config stepdowns.
// In this case, the mongos will return a HostUnreachable error.
jsTest.log.info("setFCV: Host unreachable", {e});
return;
}
if (e.code === ErrorCodes.CannotUpgrade) {
jsTest.log.info("setFCV: Can not upgrade", {e});
return;