From 9f117143be34ad7fc16ff7bbf259d95133ad2943 Mon Sep 17 00:00:00 2001 From: Xiangyu Yao Date: Mon, 5 Nov 2018 17:13:45 -0500 Subject: SERVER-37931 lock_stats_suboperation_logs.js should ignore noise lock stats (cherry picked from commit d32a6a7ae38dffbdd4a2e4f5fe733831f07d93e8) --- jstests/noPassthrough/lock_stats_suboperation_logs.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'jstests') diff --git a/jstests/noPassthrough/lock_stats_suboperation_logs.js b/jstests/noPassthrough/lock_stats_suboperation_logs.js index 515aad0baa7..9024f2ee179 100644 --- a/jstests/noPassthrough/lock_stats_suboperation_logs.js +++ b/jstests/noPassthrough/lock_stats_suboperation_logs.js @@ -77,6 +77,10 @@ for (let line of lines) { if ((match = lockWaitTimeRegex.exec(line)) !== null) { let lockWaitTime = match[1]; + // Ignoring 'noise' lock stats from other operations such as locks taken during + // validation stage. + if (lockWaitTime < blockedMillis * 1000) + continue; if (supposedLockWaitTime === undefined) supposedLockWaitTime = lockWaitTime; else -- cgit v1.2.1