Skip to content

Commit 0e0785c

Browse files
Clean up connection-churn yaml
1 parent 7c49c10 commit 0e0785c

File tree

2 files changed

+38
-40
lines changed

2 files changed

+38
-40
lines changed

testdata/client-side-operations-timeout/connection-churn.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "operation timeouts do not cause connection churn",
2+
"description": "Operation timeouts do not cause connection churn",
33
"schemaVersion": "1.9",
44
"runOnRequirements": [
55
{
@@ -57,7 +57,7 @@
5757
],
5858
"tests": [
5959
{
60-
"description": "write op with successful pending read",
60+
"description": "Write operation with successful pending read",
6161
"operations": [
6262
{
6363
"name": "failPoint",
@@ -140,7 +140,7 @@
140140
]
141141
},
142142
{
143-
"description": "write op with unsuccessful pending read",
143+
"description": "Write operation with unsuccessful pending read",
144144
"operations": [
145145
{
146146
"name": "failPoint",
@@ -222,7 +222,7 @@
222222
]
223223
},
224224
{
225-
"description": "read op with successful pending read",
225+
"description": "Read operation with successful pending read",
226226
"operations": [
227227
{
228228
"name": "failPoint",
@@ -304,7 +304,7 @@
304304
]
305305
},
306306
{
307-
"description": "read op with unsuccessful pending read",
307+
"description": "Read operation with unsuccessful pending read",
308308
"operations": [
309309
{
310310
"name": "failPoint",

testdata/client-side-operations-timeout/connection-churn.yml

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
description: "operation timeouts do not cause connection churn"
1+
description: "Operation timeouts do not cause connection churn"
22

33
schemaVersion: "1.9"
44

55
runOnRequirements:
66
- minServerVersion: "4.4"
7-
# TODO(SERVER-96344): when using failpoints mongos returns MaxTimeMSExpired
8-
# after maxTimeMS, whereas mongod returns MaxTimeMSExpired after
9-
# max(blockTimeMS, maxTimeMS). Until this ticket is resolved, these tests
7+
# TODO(SERVER-96344): When using failpoints, mongos returns MaxTimeMSExpired
8+
# after maxTimeMS, whereas mongod returns it after
9+
# max(blockTimeMS, maxTimeMS). Until this ticket is resolved, these tests
1010
# will not pass on sharded clusters.
1111
topologies: ["standalone", "replicaset"]
1212

@@ -16,7 +16,7 @@ createEntities:
1616
useMultipleMongoses: false
1717
- client:
1818
id: &client client
19-
uriOptions:
19+
uriOptions:
2020
maxPoolSize: 1
2121
useMultipleMongoses: false
2222
observeEvents:
@@ -40,9 +40,9 @@ initialData:
4040
documents: []
4141

4242
tests:
43-
- description: "write op with successful pending read"
43+
- description: "Write operation with successful pending read"
4444
operations:
45-
# Create a failpoint to block first op
45+
# Create a failpoint to block the first operation
4646
- name: failPoint
4747
object: testRunner
4848
arguments:
@@ -55,7 +55,7 @@ tests:
5555
blockConnection: true
5656
blockTimeMS: 750
5757

58-
# Execute op with timeout < block time
58+
# Execute operation with timeout less than block time
5959
- name: insertOne
6060
object: *collection
6161
arguments:
@@ -64,8 +64,7 @@ tests:
6464
expectError:
6565
isTimeoutError: true
6666

67-
# Execute a subsequent operation to complete the read when checking out
68-
# the single available connection.
67+
# Execute a subsequent operation to complete the read
6968
- name: findOne
7069
object: *collection
7170
arguments:
@@ -80,15 +79,15 @@ tests:
8079
commandName: find
8180
- client: *client
8281
eventType: cmap
83-
events:
82+
events:
8483
- connectionCheckedOutEvent: {} # insert
8584
- connectionCheckedInEvent: {} # insert fails
8685
- connectionCheckedOutEvent: {} # find
8786
- connectionCheckedInEvent: {} # find succeeds
8887

89-
- description: "write op with unsuccessful pending read"
88+
- description: "Write operation with unsuccessful pending read"
9089
operations:
91-
# Create a failpoint to block first op
90+
# Create a failpoint to block the first operation
9291
- name: failPoint
9392
object: testRunner
9493
arguments:
@@ -101,7 +100,7 @@ tests:
101100
blockConnection: true
102101
blockTimeMS: 750
103102

104-
# Execute op with timeout < block time
103+
# Execute operation with timeout less than block time
105104
- name: insertOne
106105
object: *collection
107106
arguments:
@@ -110,7 +109,7 @@ tests:
110109
expectError:
111110
isTimeoutError: true
112111

113-
# The pending read should fail.
112+
# The pending read should fail
114113
- name: insertOne
115114
object: *collection
116115
arguments:
@@ -124,19 +123,19 @@ tests:
124123
events:
125124
- commandFailedEvent:
126125
commandName: insert
127-
# There is not a second failed event since we T/O attempting to
128-
# check out the connection for the second operation.
126+
# No second failed event since we timed out attempting to check out
127+
# the connection for the second operation
129128
- client: *client
130129
eventType: cmap
131-
events:
130+
events:
132131
- connectionCheckedOutEvent: {} # first insert
133132
- connectionCheckedInEvent: {} # first insert fails
134-
- connectionClosedEvent: # second insert T/O pending read in C/O, closes
133+
- connectionClosedEvent: # second insert times out pending read in checkout, closes
135134
reason: error
136135

137-
- description: "read op with successful pending read"
136+
- description: "Read operation with successful pending read"
138137
operations:
139-
# Create a failpoint to block first op
138+
# Create a failpoint to block the first operation
140139
- name: failPoint
141140
object: testRunner
142141
arguments:
@@ -149,7 +148,7 @@ tests:
149148
blockConnection: true
150149
blockTimeMS: 750
151150

152-
# Execute op with timeout < block time
151+
# Execute operation with timeout less than block time
153152
- name: findOne
154153
object: *collection
155154
arguments:
@@ -158,8 +157,7 @@ tests:
158157
expectError:
159158
isTimeoutError: true
160159

161-
# Execute a subsequent operation to complete the read when checking out
162-
# the single available connection.
160+
# Execute a subsequent operation to complete the read
163161
- name: findOne
164162
object: *collection
165163
arguments:
@@ -174,15 +172,15 @@ tests:
174172
commandName: find
175173
- client: *client
176174
eventType: cmap
177-
events:
178-
- connectionCheckedOutEvent: {} # first find
175+
events:
176+
- connectionCheckedOutEvent: {} # first find
179177
- connectionCheckedInEvent: {} # first find fails
180178
- connectionCheckedOutEvent: {} # second find
181179
- connectionCheckedInEvent: {} # second find succeeds
182180

183-
- description: "read op with unsuccessful pending read"
181+
- description: "Read operation with unsuccessful pending read"
184182
operations:
185-
# Create a failpoint to block first op
183+
# Create a failpoint to block the first operation
186184
- name: failPoint
187185
object: testRunner
188186
arguments:
@@ -195,7 +193,7 @@ tests:
195193
blockConnection: true
196194
blockTimeMS: 750
197195

198-
# Execute op with timeout < block time
196+
# Execute operation with timeout less than block time
199197
- name: findOne
200198
object: *collection
201199
arguments:
@@ -204,7 +202,7 @@ tests:
204202
expectError:
205203
isTimeoutError: true
206204

207-
# The pending read should fail.
205+
# The pending read should fail
208206
- name: findOne
209207
object: *collection
210208
arguments:
@@ -218,12 +216,12 @@ tests:
218216
events:
219217
- commandFailedEvent:
220218
commandName: find
221-
# There is not a second failed event since we T/O attempting to
222-
# check out the connection for the second operation.
219+
# No second failed event since we timed out attempting to check out
220+
# the connection for the second operation
223221
- client: *client
224222
eventType: cmap
225-
events:
226-
- connectionCheckedOutEvent: {} # first find
223+
events:
224+
- connectionCheckedOutEvent: {} # first find
227225
- connectionCheckedInEvent: {} # first find fails
228-
- connectionClosedEvent: # second find T/O pending read in C/O, closes
226+
- connectionClosedEvent: # second find times out pending read in checkout, closes
229227
reason: error

0 commit comments

Comments
 (0)