...
1version: 1
2style: integration
3description: clear with interruptInUseConnections = true closes pending connections
4runOn:
5 -
6 minServerVersion: "4.9.0"
7failPoint:
8 configureFailPoint: failCommand
9 mode: "alwaysOn"
10 data:
11 failCommands: ["isMaster","hello"]
12 closeConnection: false
13 blockConnection: true
14 blockTimeMS: 1000
15poolOptions:
16 minPoolSize: 0
17operations:
18 - name: ready
19 - name: start
20 target: thread1
21 - name: checkOut
22 thread: thread1
23 - name: waitForEvent
24 event: ConnectionCreated
25 count: 1
26 - name: clear
27 interruptInUseConnections: true
28 - name: waitForEvent
29 event: ConnectionCheckOutFailed
30 count: 1
31events:
32 - type: ConnectionCheckOutStarted
33 - type: ConnectionCreated
34 - type: ConnectionPoolCleared
35 interruptInUseConnections: true
36 - type: ConnectionClosed
37 - type: ConnectionCheckOutFailed
38ignore:
39 - ConnectionCheckedIn
40 - ConnectionCheckedOut
41 - ConnectionPoolCreated
42 - ConnectionPoolReady
View as plain text