diff options
author | Judah Schvimer <judah@mongodb.com> | 2016-08-15 11:49:38 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2016-08-15 11:49:38 -0400 |
commit | d22cd69f5190c8dbafd854186542c8a2948b58e7 (patch) | |
tree | f2b330014e60adf92690630680ea24b92b7f646c /jstests | |
parent | df4248d69bd6643925d0e9cc62c6be3adf7750d7 (diff) | |
download | mongo-d22cd69f5190c8dbafd854186542c8a2948b58e7.tar.gz |
SERVER-25589 increase awaitReplication() timeout in linearizable_read_concern.js
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/linearizable_read_concern.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/replsets/linearizable_read_concern.js b/jstests/replsets/linearizable_read_concern.js index a8e707fb556..77a78954cf1 100644 --- a/jstests/replsets/linearizable_read_concern.js +++ b/jstests/replsets/linearizable_read_concern.js @@ -52,7 +52,10 @@ load('jstests/libs/write_concern_util.js'); updateConfigIfNotDurable(config); replTest.initiate(config); - replTest.awaitReplication(); + // We increase the awaitReplication timeout because without a sync source the heartbeat + // interval will be half of the election timeout, 30 seconds. It thus will take almost + // 30 seconds for the secondaries to set the primary as their sync source and begin replicating. + replTest.awaitReplication(90 * 1000); var primary = replTest.getPrimary(); var secondaries = replTest.getSecondaries(); |