diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-11-06 13:40:59 -0500 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-11-06 13:40:59 -0500 |
commit | ce3e47aed550efdcd902ef4d565429bd373e8007 (patch) | |
tree | 2213366c89fbebbdee3925e04f740ef16b944cc6 /jstests/replsets/no_chaining.js | |
parent | 36b0d1069a878f1f2e42b79d5b5b539b6c1d4a5d (diff) | |
download | mongo-ce3e47aed550efdcd902ef4d565429bd373e8007.tar.gz |
SERVER-19301 Expose new MongoBridge API for network partition testing.
Changes the existing architecture of having a mongobridge process for
each unidirection link between two mongod processes in a replica set to
having a single mongobridge process per node in the replica set. The
mongobridge process is able to distinguish between connections from
different hosts by using the "hostInfo" field in the initial isMaster
command request.
Diffstat (limited to 'jstests/replsets/no_chaining.js')
-rw-r--r-- | jstests/replsets/no_chaining.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/replsets/no_chaining.js b/jstests/replsets/no_chaining.js index 6a30527a56f..ebedae9fa5d 100644 --- a/jstests/replsets/no_chaining.js +++ b/jstests/replsets/no_chaining.js @@ -3,7 +3,7 @@ function myprint( x ) { print( "chaining output: " + x ); } -var replTest = new ReplSetTest({name: 'testSet', nodes: 3}); +var replTest = new ReplSetTest({name: 'testSet', nodes: 3, useBridge: true}); var nodes = replTest.startSet(); var hostnames = replTest.nodeList(); replTest.initiate( @@ -25,8 +25,7 @@ replTest.awaitReplication(); var breakNetwork = function() { - replTest.bridge(); - replTest.partition(0, 2); + nodes[0].disconnect(nodes[2]); master = replTest.getMaster(); }; |