From 2005f25eed7ed88fa698d9b800fe536bb0410ba4 Mon Sep 17 00:00:00 2001 From: Charlie Swanson Date: Fri, 22 Mar 2019 15:38:30 -0400 Subject: SERVER-40305 Add logging in max_time_ms.js (cherry picked from commit 0fcfd17a40ad22973d03b51208ca03a66c010ec5) (cherry picked from commit d803265a34cc40a374f2409381a1ecc75dfa0a02) --- jstests/core/max_time_ms.js | 4 ++++ 1 file changed, 4 insertions(+) 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"); // -- cgit v1.2.1