jstests/replsets/awaitable_hello_on_nodes_with_invalid_configs.js
// Waiting hellos should error when a node rejoins a replica set.
Waiting hellos should error when a node rejoins a replica set.
Waiting hellos should error when a node rejoins a replica set .
function runAwaitableHelloOnRejoiningSet(topologyVersionField) {
    const result = assert.throws(() => db.runCommand({
        hello: 1,
        topologyVersion: topologyVersionField,
        maxAwaitTimeMS: 99999999,
    }));
    assert(isNetworkError(result));
    assert.commandWorked(db.adminCommand({ping: 1}));
}
function runAwaitableHelloOnRejoiningSet ( topologyVersionField ) { const result = assert . throws ( ( ) => db . runCommand ( { hello : 1 , topologyVersion : topologyVersionField , maxAwaitTimeMS : 99999999 , } ) ) ; assert ( isNetworkError ( result ) ) ; assert . commandWorked ( db . adminCommand ( { ping : 1 } ) ) ; }
Waiting hellos should error when a node rejoins a replica set.
Waiting hellos should error when a node rejoins a replica set .
// We should automatically reconnect after the failed command.