diff options
Diffstat (limited to 'jstests/noPassthrough/snapshot_history_window.js')
-rw-r--r-- | jstests/noPassthrough/snapshot_history_window.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/noPassthrough/snapshot_history_window.js b/jstests/noPassthrough/snapshot_history_window.js index 02e50fd622b..391af8b8372 100644 --- a/jstests/noPassthrough/snapshot_history_window.js +++ b/jstests/noPassthrough/snapshot_history_window.js @@ -60,5 +60,11 @@ assert.commandFailedWithCode( {find: collName, readConcern: {level: "snapshot", atClusterTime: insertTimestamp}}), ErrorCodes.SnapshotTooOld); +// Test that the SnapshotTooOld is recorded in serverStatus. +const serverStatusWT = assert.commandWorked(primaryDB.adminCommand({serverStatus: 1})).wiredTiger; +assert.eq(1, + serverStatusWT["snapshot-window-settings"]["total number of SnapshotTooOld errors"], + tojson(serverStatusWT)); + replSet.stopSet(); })(); |