diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2019-03-22 15:38:30 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-08 22:36:36 +0000 |
commit | 2005f25eed7ed88fa698d9b800fe536bb0410ba4 (patch) | |
tree | a9ca6bfb29efb7c0053c513cf6d596e5f71a153d | |
parent | c6980931e00dac592fdcb2d0c48b2ecc81d17a6e (diff) | |
download | mongo-2005f25eed7ed88fa698d9b800fe536bb0410ba4.tar.gz |
SERVER-40305 Add logging in max_time_ms.jsr3.6.18-rc0r3.6.18
(cherry picked from commit 0fcfd17a40ad22973d03b51208ca03a66c010ec5)
(cherry picked from commit d803265a34cc40a374f2409381a1ecc75dfa0a02)
-rw-r--r-- | jstests/core/max_time_ms.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/core/max_time_ms.js b/jstests/core/max_time_ms.js index 16ee99827e2..9ed499a47b0 100644 --- a/jstests/core/max_time_ms.js +++ b/jstests/core/max_time_ms.js @@ -176,7 +176,11 @@ cursor = t.find({ cursor.batchSize(3); cursor.maxTimeMS(20 * 1000); assert.doesNotThrow(function() { + // SERVER-40305: Add some additional logging here in case this fails to help us track down why + // it failed. + assert.commandWorked(db.adminCommand({setParameter: 1, traceExceptions: 1})); cursor.itcount(); + assert.commandWorked(db.adminCommand({setParameter: 1, traceExceptions: 0})); }, [], "expected find() to not hit the time limit"); // |