mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-50471 Waiting for failpoint does not always throw in quiesce_mode.js
This commit is contained in:
parent
48a30bc6b5
commit
9de1a21c9b
@ -119,8 +119,11 @@ jsTestLog("Let shutdown progress to start killing operations.");
|
||||
let pauseWhileKillingOperationsFailPoint =
|
||||
configureFailPoint(secondary, "pauseWhileKillingOperationsAtShutdown");
|
||||
quiesceModeFailPoint.off();
|
||||
// This throws because the configureFailPoint command is killed by the shutdown.
|
||||
assert.throws(() => pauseWhileKillingOperationsFailPoint.wait());
|
||||
try {
|
||||
pauseWhileKillingOperationsFailPoint.wait();
|
||||
} catch (e) {
|
||||
// This can throw if the waitForFailPoint command is killed by the shutdown.
|
||||
}
|
||||
|
||||
jsTestLog("Operations fail with a shutdown error and append the topologyVersion.");
|
||||
checkTopologyVersion(assert.commandFailedWithCode(secondaryDB.runCommand({find: collName}),
|
||||
@ -206,8 +209,11 @@ jsTestLog("Let shutdown progress to start killing operations.");
|
||||
pauseWhileKillingOperationsFailPoint =
|
||||
configureFailPoint(primary, "pauseWhileKillingOperationsAtShutdown");
|
||||
quiesceModeFailPoint.off();
|
||||
// This throws because the configureFailPoint command is killed by the shutdown.
|
||||
assert.throws(() => pauseWhileKillingOperationsFailPoint.wait());
|
||||
try {
|
||||
pauseWhileKillingOperationsFailPoint.wait();
|
||||
} catch (e) {
|
||||
// This can throw if the waitForFailPoint command is killed by the shutdown.
|
||||
}
|
||||
|
||||
jsTestLog("Operations fail with a shutdown error and append the topologyVersion.");
|
||||
checkTopologyVersion(assert.commandFailedWithCode(primaryDB.runCommand({find: collName}),
|
||||
|
Loading…
Reference in New Issue
Block a user