Skip to content

Commit 38cbbce

Browse files
DRIVERS-2953 getMore should not have maxTimeMS for non-tailable cursor (#1710)
1 parent f7e7dc2 commit 38cbbce

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

source/client-side-operations-timeout/tests/runCursorCommand.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/client-side-operations-timeout/tests/runCursorCommand.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ tests:
7070
runOnRequirements:
7171
- serverless: forbid
7272
operations:
73-
# Block find/getMore for 15ms.
73+
# Block find/getMore for 60ms.
7474
- name: failPoint
7575
object: testRunner
7676
arguments:
@@ -83,8 +83,9 @@ tests:
8383
blockConnection: true
8484
blockTimeMS: 60
8585
# Run a find with timeoutMS less than double our failPoint blockTimeMS and
86-
# batchSize less than the total document count will cause a find and a getMore to be sent.
87-
# Both will block for 60ms so together they will go over the timeout.
86+
# batchSize less than the total document count will cause a find and a
87+
# getMore to be sent. Both will block for 60ms so together they will go
88+
# over the timeout.
8889
- name: runCursorCommand
8990
object: *db
9091
arguments:
@@ -106,12 +107,12 @@ tests:
106107
command:
107108
getMore: { $$type: [int, long] }
108109
collection: *collection
109-
maxTimeMS: { $$exists: true }
110+
maxTimeMS: { $$exists: false }
110111

111112
# If timeoutMode=ITERATION, timeoutMS applies separately to the initial find and the getMore on the cursor. Neither
112113
# command should have a maxTimeMS field. This is a failure test. The "find" inherits timeoutMS=100 and "getMore"
113114
# commands are blocked for 60ms, causing iteration to fail with a timeout error.
114-
- description: Non=tailable cursor iteration timeoutMS is refreshed for getMore if timeoutMode is iteration - failure
115+
- description: Non-tailable cursor iteration timeoutMS is refreshed for getMore if timeoutMode is iteration - failure
115116
runOnRequirements:
116117
- serverless: forbid
117118
operations:

0 commit comments

Comments
 (0)