diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-09-29 17:45:38 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2016-09-30 11:58:55 -0400 |
commit | 637ddd4b1c740c54f658be5583336c029fd5de87 (patch) | |
tree | 4f4444c41b2b414784c64cc3d555e4922f26e2f7 | |
parent | cbea5409faa7c1bc717aa9000fa6c904c27a1a90 (diff) | |
download | mongo-637ddd4b1c740c54f658be5583336c029fd5de87.tar.gz |
SERVER-26401 Increase gle timeout in read_committed_after_rollback.js
-rw-r--r-- | jstests/replsets/read_committed_after_rollback.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/replsets/read_committed_after_rollback.js b/jstests/replsets/read_committed_after_rollback.js index ce1a4105c0c..dacf7bff7c6 100644 --- a/jstests/replsets/read_committed_after_rollback.js +++ b/jstests/replsets/read_committed_after_rollback.js @@ -143,8 +143,10 @@ load("jstests/replsets/rslib.js"); // For startSetIfSupportsReadMajority. // now be visible as a committed read to both oldPrimary and newPrimary. assert.commandWorked( pureSecondary.adminCommand({configureFailPoint: "rsSyncApplyStop", mode: "off"})); - assert.commandWorked( - newPrimaryColl.runCommand({getLastError: 1, w: 'majority', wtimeout: 30000})); + var gleResponse = + newPrimaryColl.runCommand({getLastError: 1, w: 'majority', wtimeout: 5 * 1000 * 60}); + assert.commandWorked(gleResponse); + assert.eq(null, gleResponse.err, "GLE detected write error: " + tojson(gleResponse)); assert.eq(doCommittedRead(newPrimaryColl), 'new'); assert.eq(doCommittedRead(oldPrimaryColl), 'new'); }()); |