-
Notifications
You must be signed in to change notification settings - Fork 248
Expand file tree
/
Copy pathpool-checkout-error-checkin.yml
More file actions
55 lines (55 loc) · 1.42 KB
/
Copy pathpool-checkout-error-checkin.yml
File metadata and controls
55 lines (55 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: 1
style: integration
description: checking in a connection after checkout fails closes connection
runOn:
-
# Required for appName in fail point
minServerVersion: "4.9.0"
auth: true
poolOptions:
appName: &appName "poolCheckOutErrorCheckInTest"
failPoint:
configureFailPoint: failCommand
# Skip the first so that the first checkOut succeeds.
mode: { skip: 1 }
data:
# Use saslContinue so that monitor checks won't interfere with this failpoint.
failCommands: ["saslContinue"]
closeConnection: true
appName: *appName
operations:
- name: ready
- name: checkOut
label: conn
# Perform check out in another thread so the main thread can continue to
# execute operations.
- name: start
target: thread1
- name: checkOut
thread: thread1
# Wait for the check out to fail
- name: waitForEvent
event: ConnectionCheckOutFailed
count: 1
- name: checkIn
connection: conn
events:
- type: ConnectionCheckOutStarted
- type: ConnectionCreated
- type: ConnectionReady
- type: ConnectionCheckedOut
- type: ConnectionCheckOutStarted
- type: ConnectionCreated
- type: ConnectionPoolCleared
- type: ConnectionClosed
reason: error
connectionId: 2
- type: ConnectionCheckOutFailed
reason: connectionError
- type: ConnectionCheckedIn
- type: ConnectionClosed
connectionId: 1
reason: stale
ignore:
- ConnectionPoolCreated
- ConnectionPoolReady