diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2014-10-27 13:31:30 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2014-10-27 16:52:06 -0400 |
commit | 07c0c80e190206b8e6f037a885bc5971a78cae3e (patch) | |
tree | 514a7d14a0ab2514380b6c947292bd3150e2bbc8 /jstests/replsets/replsetprio1.js | |
parent | f2d64af58205b77e4b9e4c7f3af9d3457d1bf0db (diff) | |
download | mongo-07c0c80e190206b8e6f037a885bc5971a78cae3e.tar.gz |
SERVER-15781 Separate the concepts of next electable time and step-down until in replication.
The topology coordinator needs to track two distinct notions of a node not being
willing to stand for election. The first is that of the step-down period.
During the step down period, the node will not stand for election due to the
step-down command being issued. In heartbeat responses, nodes in the step down
period should report that they are not electable.
The second notion is that of the post election sleep period. If a node loses an
election, it declines to stand again for a brief period of time (1 second plus a
random interval), to avert problems related to ties. During this period, its
heartbeat responses should still report the node is electable, to suppress the
election of lower priority nodes.
Diffstat (limited to 'jstests/replsets/replsetprio1.js')
-rw-r--r-- | jstests/replsets/replsetprio1.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/replsets/replsetprio1.js b/jstests/replsets/replsetprio1.js index a3f429390ce..04a3fb1f237 100644 --- a/jstests/replsets/replsetprio1.js +++ b/jstests/replsets/replsetprio1.js @@ -41,5 +41,4 @@ assert(master.getDB("foo").bar.findOne({i:i}) != null, 'checking '+i); assert(master.getDB("bar").baz.findOne({i:i}) != null, 'checking '+i); } -// Note: SERVER-15781 disabled this test. -}/*()*/); +}()); |