| 1 |
version: 1 |
| 2 |
style: integration |
| 3 |
description: custom maxConnecting is enforced |
| 4 |
runOn: |
| 5 |
- |
| 6 |
minServerVersion: "4.4.0" |
| 7 |
failPoint: |
| 8 |
configureFailPoint: failCommand |
| 9 |
mode: "alwaysOn" |
| 10 |
data: |
| 11 |
failCommands: ["isMaster","hello"] |
| 12 |
closeConnection: false |
| 13 |
blockConnection: true |
| 14 |
blockTimeMS: 500 |
| 15 |
poolOptions: |
| 16 |
maxConnecting: 1 |
| 17 |
|
| 18 |
maxPoolSize: 2 |
| 19 |
waitQueueTimeoutMS: 5000 |
| 20 |
operations: |
| 21 |
- name: ready |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
- name: start |
| 26 |
target: thread1 |
| 27 |
- name: start |
| 28 |
target: thread2 |
| 29 |
- name: checkOut |
| 30 |
thread: thread1 |
| 31 |
- name: waitForEvent |
| 32 |
event: ConnectionCreated |
| 33 |
count: 1 |
| 34 |
- name: checkOut |
| 35 |
thread: thread2 |
| 36 |
- name: waitForEvent |
| 37 |
event: ConnectionReady |
| 38 |
count: 2 |
| 39 |
events: |
| 40 |
- type: ConnectionCreated |
| 41 |
- type: ConnectionReady |
| 42 |
- type: ConnectionCreated |
| 43 |
- type: ConnectionReady |
| 44 |
ignore: |
| 45 |
- ConnectionCheckOutStarted |
| 46 |
- ConnectionCheckedIn |
| 47 |
- ConnectionCheckedOut |
| 48 |
- ConnectionClosed |
| 49 |
- ConnectionPoolCreated |
| 50 |
- ConnectionPoolReady |