1{
2 "description": "wait queue timeout errors include details about checked out connections",
3 "schemaVersion": "1.3",
4 "runOnRequirements": [
5 {
6 "topologies": [
7 "load-balanced"
8 ]
9 }
10 ],
11 "createEntities": [
12 {
13 "client": {
14 "id": "client0",
15 "useMultipleMongoses": true,
16 "uriOptions": {
17 "maxPoolSize": 1,
18 "waitQueueTimeoutMS": 50
19 },
20 "observeEvents": [
21 "connectionCheckedOutEvent",
22 "connectionCheckOutFailedEvent"
23 ]
24 }
25 },
26 {
27 "session": {
28 "id": "session0",
29 "client": "client0"
30 }
31 },
32 {
33 "database": {
34 "id": "database0",
35 "client": "client0",
36 "databaseName": "database0Name"
37 }
38 },
39 {
40 "collection": {
41 "id": "collection0",
42 "database": "database0",
43 "collectionName": "coll0"
44 }
45 }
46 ],
47 "initialData": [
48 {
49 "collectionName": "coll0",
50 "databaseName": "database0Name",
51 "documents": [
52 {
53 "_id": 1
54 },
55 {
56 "_id": 2
57 },
58 {
59 "_id": 3
60 }
61 ]
62 }
63 ],
64 "tests": [
65 {
66 "description": "wait queue timeout errors include cursor statistics",
67 "operations": [
68 {
69 "name": "createFindCursor",
70 "object": "collection0",
71 "arguments": {
72 "filter": {},
73 "batchSize": 2
74 },
75 "saveResultAsEntity": "cursor0"
76 },
77 {
78 "name": "insertOne",
79 "object": "collection0",
80 "arguments": {
81 "document": {
82 "x": 1
83 }
84 },
85 "expectError": {
86 "isClientError": true,
87 "errorContains": "maxPoolSize: 1, connections in use by cursors: 1, connections in use by transactions: 0, connections in use by other operations: 0"
88 }
89 }
90 ],
91 "expectEvents": [
92 {
93 "client": "client0",
94 "eventType": "cmap",
95 "events": [
96 {
97 "connectionCheckedOutEvent": {}
98 },
99 {
100 "connectionCheckOutFailedEvent": {}
101 }
102 ]
103 }
104 ]
105 },
106 {
107 "description": "wait queue timeout errors include transaction statistics",
108 "operations": [
109 {
110 "name": "startTransaction",
111 "object": "session0"
112 },
113 {
114 "name": "insertOne",
115 "object": "collection0",
116 "arguments": {
117 "document": {
118 "x": 1
119 },
120 "session": "session0"
121 }
122 },
123 {
124 "name": "insertOne",
125 "object": "collection0",
126 "arguments": {
127 "document": {
128 "x": 1
129 }
130 },
131 "expectError": {
132 "isClientError": true,
133 "errorContains": "maxPoolSize: 1, connections in use by cursors: 0, connections in use by transactions: 1, connections in use by other operations: 0"
134 }
135 }
136 ],
137 "expectEvents": [
138 {
139 "client": "client0",
140 "eventType": "cmap",
141 "events": [
142 {
143 "connectionCheckedOutEvent": {}
144 },
145 {
146 "connectionCheckOutFailedEvent": {}
147 }
148 ]
149 }
150 ]
151 }
152 ]
153}
View as plain text