This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run `npm i mongo` and run this test program after filling in the variables | |
// below. Run it against a replicaset with a sharded collection, with your | |
// MongoS process running on the same host as the script. | |
// You should // see start and finish messages from fxCountWithLog. | |
// Now do an rs.stepDown() on the replicaset primary. You should see an error | |
// message and the script should continue. So that's fine. | |
// Wait until the Replicaset settles down. Now on the new | |
// replicaset primary, do: |
OlderNewer