jstests/sharding/remove2.js
// Await that each node in @nodes drop the RSM for @rsName
Await that each node in @nodes drop the RSM for @rsName
Await that each node in @nodes drop the RSM for @rsName
function awaitReplicaSetMonitorRemoval(nodes, rsName) {
    nodes.forEach(function(node) {
        jsTest.log("Awaiting ReplicaSetMonitor removal for " + rsName + " on " + node);
        assert.soon(
            function() {
                var replicaSets =
                    assert.commandWorked(node.adminCommand('connPoolStats')).replicaSets;
                return !(rsName in replicaSets);
            },
            "Failed waiting for node " + node +
                "to remove ReplicaSetMonitor of replica set: " + rsName);
    });
}
function awaitReplicaSetMonitorRemoval ( nodes , rsName ) { nodes . forEach ( function ( node ) { jsTest . log ( "Awaiting ReplicaSetMonitor removal for " + rsName + " on " + node ) ; assert . soon ( function ( ) { var replicaSets = assert . commandWorked ( node . adminCommand ( 'connPoolStats' ) ) . replicaSets ; return ! ( rsName in replicaSets ) ; } , "Failed waiting for node " + node + "to remove ReplicaSetMonitor of replica set: " + rsName ) ; } ) ; }
Await that each node in @nodes drop the RSM for @rsName
Await that each node in @nodes drop the RSM for @rsName