mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-53646 Catch exception if waiting for failpoint throws on close connections in awaitable_hello_on_nodes_with_invalid_configs.js
This commit is contained in:
parent
9a32ea06f7
commit
8d9dd063d9
@ -127,7 +127,13 @@ awaitPrimaryHelloBeforeNodeRemoval();
|
||||
assert.soonNoExcept(
|
||||
() => assert.commandFailedWithCode(secondaryDB.adminCommand({replSetGetStatus: 1}),
|
||||
ErrorCodes.InvalidReplicaSetConfig));
|
||||
connectionsClosedAfterRemoved.wait();
|
||||
|
||||
// It is possible that 'waitForFailpoint' is called as connections are being closed, triggering
|
||||
// an exception. In this case, retry until we are sure connections are finished closing.
|
||||
assert.soonNoExcept(function() {
|
||||
connectionsClosedAfterRemoved.wait();
|
||||
return true;
|
||||
});
|
||||
|
||||
const primaryRespAfterRemoval = assert.commandWorked(primaryDB.runCommand({hello: 1}));
|
||||
const secondaryRespAfterRemoval = assert.commandWorked(secondaryDB.runCommand({hello: 1}));
|
||||
|
Loading…
Reference in New Issue
Block a user