Commit Graph

9 Commits

Author SHA1 Message Date
Kaloian Manassiev
6745d91683 SERVER-21050 Introduce ReplSetTest.State enumeration everywhere
Makes all JS tests access the replica set member state from the class
itself instead of the object instance. Also removes some unused code.
2015-12-11 13:32:56 -05:00
Kaloian Manassiev
c078dc37a9 SERVER-21050 Cleanup ReplSetTest
This is just a cleanup work to hide some of the private state of
ReplSetTest so it is easier to encapsulate and add new logic. Also enables
strict mode.
2015-12-08 13:15:06 -05:00
Andy Schwerin
07c0c80e19 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.
2014-10-27 16:52:06 -04:00
Eric Milkie
3340ca09d3 SERVER-15733 disable test 2014-10-22 08:43:25 -04:00
Andy Schwerin
40f72b7805 SERVER-15733 Wait longer for a primary in jstests/replsets/replsetprio1.js.
With the 30 second lease time, it is possible for it to take just over 30 seconds to elect
a new primary in replsetprio1.js.  Bump the wait time in the test to 60 seconds.
2014-10-21 10:55:10 -04:00
Eric Milkie
b980e86cea SERVER-15535 enhance freshness checker to consider priorities as well. 2014-10-15 13:25:47 -04:00
Kristina
b5342d02de Increase test timeout for slow buildbots SERVER-5223 2012-03-06 14:49:30 -05:00
Kristina
4402792701 Check optimes before stepping down due to priority SERVER-4810 2012-02-13 10:28:13 -05:00
Kristina Chodorow
cdc48b26f1 rs priority test SERVER-1503 2010-07-28 10:25:31 -04:00