summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2020-01-17 14:30:10 -0500
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2020-01-27 15:40:41 -0500
commit4e414a420c8c0e943ba373efff1778a663445695 (patch)
treef531b05320dd888df3f8cc020b259913a978f879
parent9b42712b1f0ac677ebaa162fb984a5c184fc09ab (diff)
downloadmongo-4e414a420c8c0e943ba373efff1778a663445695.tar.gz
SERVER-45641: Tag awaitdata_getmore_new_last_committed_optime.js requires_snapshot_read
-rw-r--r--jstests/replsets/awaitdata_getmore_new_last_committed_optime.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/replsets/awaitdata_getmore_new_last_committed_optime.js b/jstests/replsets/awaitdata_getmore_new_last_committed_optime.js
index 45d84e25d3f..a9d729d683d 100644
--- a/jstests/replsets/awaitdata_getmore_new_last_committed_optime.js
+++ b/jstests/replsets/awaitdata_getmore_new_last_committed_optime.js
@@ -4,7 +4,11 @@
// client's lastKnownCommittedOpTime is behind the node's lastCommittedOpTime, getMore returns early
// with an empty batch.
//
-// @tags: [requires_fcv_44]
+// The test runs a secondary read (getMore) that is blocked on a failpoint while waiting for
+// replication. If the storage engine supports snapshot reads, secondary reads do not acquire PBWM
+// locks. So in order to not block secondary oplog application while the secondary read is blocked
+// on a failpoint, we only run this test with storage engine that supports snapshot read.
+// @tags: [requires_fcv_44, requires_snapshot_read]
(function() {
'use strict';