Commit Graph

14 Commits

Author SHA1 Message Date
Benety Goh
218ded6589 SERVER-23583 replsetprio1.js should wait for replication before stopping highest priority node 2016-04-21 15:16:43 -04:00
Eric Milkie
e96179ba85 SERVER-23643 gate state transitions in replsetprio1.js 2016-04-11 15:39:32 -04:00
Mike Grundy
1be713cebb SERVER-23067 Final round of JS linting and formatting 2016-03-18 17:10:31 -04:00
Eric Milkie
af36940046 SERVER-23086 avoid rollbacks in replsetprio1.js 2016-03-11 16:56:29 -05:00
Jonathan Abrahams
4ae691e8ed SERVER-22468 Format JS code with approved style in jstests/ 2016-03-09 12:18:14 -05:00
Kaloian Manassiev
20cd3a392e 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:21:22 -05:00
Kaloian Manassiev
3ed6635a5f 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:05:00 -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