diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2019-03-22 15:38:30 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2019-03-26 13:10:34 -0400 |
commit | d803265a34cc40a374f2409381a1ecc75dfa0a02 (patch) | |
tree | bcdf1ce3d34a65762b748a2e1e08d328ff42b270 | |
parent | ef74db9b48a13e1f902ce0eea3c0b5a24ba45ecc (diff) | |
download | mongo-d803265a34cc40a374f2409381a1ecc75dfa0a02.tar.gz |
SERVER-40305 Add logging in max_time_ms.js
(cherry picked from commit 0fcfd17a40ad22973d03b51208ca03a66c010ec5)
-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 06a7693dcaf..51e93ce0318 100644 --- a/jstests/core/max_time_ms.js +++ b/jstests/core/max_time_ms.js @@ -178,7 +178,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"); // |