SERVER-120971 Allow HostUnreachable in FCVUpgradeDowngradeInBackground in stepdown suites (#49085)
GitOrigin-RevId: 85d7378f44fb4c7d6350cf297160656fe9b61d37
This commit is contained in:
committed by
MongoDB Bot
parent
af9480c34f
commit
058e609f3c
@@ -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
|
||||
|
||||
@@ -63,6 +63,10 @@
|
||||
skipEnforceFastCountOnValidate: true
|
||||
- class: CheckOrphansDeleted
|
||||
- class: FCVUpgradeDowngradeInBackground
|
||||
shell_options:
|
||||
global_vars:
|
||||
TestData:
|
||||
runningWithConfigStepdowns: true
|
||||
- class: CleanEveryN
|
||||
n: 20
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user