File tree Expand file tree Collapse file tree 3 files changed +61
-7
lines changed
discovery_and_monitoring/unified Expand file tree Collapse file tree 3 files changed +61
-7
lines changed Original file line number Diff line number Diff line change 5656 ],
5757 "uriOptions" : {
5858 "retryWrites" : false ,
59- "heartbeatFrequencyMS" : 5000 ,
59+ "heartbeatFrequencyMS" : 10000 ,
6060 "appname" : " heartbeatBackoffFailTest"
6161 }
6262 }
Original file line number Diff line number Diff line change 3838 {
3939 "description" : " Backoff and fail after network connection errors during connection establishment" ,
4040 "operations" : [
41+ {
42+ "name" : " failPoint" ,
43+ "object" : " testRunner" ,
44+ "arguments" : {
45+ "client" : " setupClient" ,
46+ "failPoint" : {
47+ "configureFailPoint" : " failCommand" ,
48+ "mode" : " off"
49+ }
50+ }
51+ },
4152 {
4253 "name" : " createEntities" ,
4354 "object" : " testRunner" ,
141152 {
142153 "description" : " Backoff and clear the pool after network failures followed by server error" ,
143154 "operations" : [
144-
155+ {
156+ "name" : " failPoint" ,
157+ "object" : " testRunner" ,
158+ "arguments" : {
159+ "client" : " setupClient" ,
160+ "failPoint" : {
161+ "configureFailPoint" : " failCommand" ,
162+ "mode" : " off"
163+ }
164+ }
165+ },
145166 {
146167 "name" : " createEntities" ,
147168 "object" : " testRunner" ,
Original file line number Diff line number Diff line change 4141 " connectionCheckOutFailedEvent" ,
4242 " connectionCheckedInEvent" ,
4343 " connectionClosedEvent" ,
44- " poolClearedEvent"
44+ " poolClearedEvent" ,
45+ " poolBackoffEvent" ,
46+ " serverHeartbeatSucceededEvent" ,
47+ " serverHeartbeatFailedEvent"
4548 ]
4649 }
4750 },
260263 ]
261264 },
262265 {
263- "description" : " errors during the initial connection hello are ignored " ,
266+ "description" : " errors during the initial connection hello trigger backoff " ,
264267 "runOnRequirements" : [
265268 {
266269 "minServerVersion" : " 4.4.7"
267270 }
268271 ],
269272 "operations" : [
273+ {
274+ "name" : " waitForEvent" ,
275+ "object" : " testRunner" ,
276+ "arguments" : {
277+ "client" : " singleClient" ,
278+ "event" : {
279+ "serverHeartbeatSucceededEvent" : {}
280+ },
281+ "count" : 1
282+ }
283+ },
270284 {
271285 "name" : " failPoint" ,
272286 "object" : " testRunner" ,
295309 "document" : {
296310 "x" : 1
297311 }
298- },
299- "expectError" : {
300- "isClientError" : true
312+ }
313+ },
314+ {
315+ "name" : " waitForEvent" ,
316+ "object" : " testRunner" ,
317+ "arguments" : {
318+ "client" : " client" ,
319+ "event" : {
320+ "poolBackoffEvent" : {}
321+ },
322+ "count" : 1
301323 }
302324 }
303325 ],
318340 "connectionCheckOutFailedEvent" : {
319341 "reason" : " connectionError"
320342 }
343+ },
344+ {
345+ "poolBackoffEvent" : {
346+ "attempt" : 1
347+ }
348+ },
349+ {
350+ "connectionCheckedOutEvent" : {}
351+ },
352+ {
353+ "connectionCheckedInEvent" : {}
321354 }
322355 ]
323356 }
You can’t perform that action at this time.
0 commit comments