Skip to content

Commit 09a5174

Browse files
authored
RUBY-3790 new backpressure-connection-checkin spec test (#3009)
1 parent 43c94ee commit 09a5174

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
description: tests that connections are returned to the pool on retry attempts for overload errors
2+
schemaVersion: "1.3"
3+
runOnRequirements:
4+
- minServerVersion: "4.4"
5+
topologies:
6+
- replicaset
7+
- sharded
8+
- load-balanced
9+
createEntities:
10+
- client:
11+
id: client
12+
useMultipleMongoses: false
13+
observeEvents:
14+
- connectionCheckedOutEvent
15+
- connectionCheckedInEvent
16+
- client:
17+
id: fail_point_client
18+
useMultipleMongoses: false
19+
- database:
20+
id: database
21+
client: client
22+
databaseName: backpressure-connection-checkin
23+
- collection:
24+
id: collection
25+
database: database
26+
collectionName: coll
27+
tests:
28+
- description: overload error retry attempts return connections to the pool
29+
operations:
30+
- name: failPoint
31+
object: testRunner
32+
arguments:
33+
client: fail_point_client
34+
failPoint:
35+
configureFailPoint: failCommand
36+
mode: alwaysOn
37+
data:
38+
failCommands:
39+
- find
40+
errorLabels:
41+
- RetryableError
42+
- SystemOverloadedError
43+
errorCode: 2
44+
- name: find
45+
object: collection
46+
arguments:
47+
filter: {}
48+
expectError:
49+
isError: true
50+
isClientError: false
51+
expectEvents:
52+
- client: client
53+
eventType: cmap
54+
events:
55+
- connectionCheckedOutEvent: {}
56+
- connectionCheckedInEvent: {}
57+
- connectionCheckedOutEvent: {}
58+
- connectionCheckedInEvent: {}
59+
- connectionCheckedOutEvent: {}
60+
- connectionCheckedInEvent: {}
61+
- connectionCheckedOutEvent: {}
62+
- connectionCheckedInEvent: {}
63+
- connectionCheckedOutEvent: {}
64+
- connectionCheckedInEvent: {}
65+
- connectionCheckedOutEvent: {}
66+
- connectionCheckedInEvent: {}
67+

0 commit comments

Comments
 (0)