| 1 |
version: 1 |
| 2 |
style: integration |
| 3 |
description: waiting on maxConnecting is limited by WaitQueueTimeoutMS |
| 4 |
runOn: |
| 5 |
- |
| 6 |
|
| 7 |
minServerVersion: "4.4.0" |
| 8 |
failPoint: |
| 9 |
configureFailPoint: failCommand |
| 10 |
|
| 11 |
mode: { times: 50 } |
| 12 |
data: |
| 13 |
failCommands: ["isMaster","hello"] |
| 14 |
closeConnection: false |
| 15 |
blockConnection: true |
| 16 |
blockTimeMS: 750 |
| 17 |
poolOptions: |
| 18 |
maxPoolSize: 10 |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
waitQueueTimeoutMS: 50 |
| 23 |
operations: |
| 24 |
- name: ready |
| 25 |
|
| 26 |
- name: start |
| 27 |
target: thread1 |
| 28 |
- name: checkOut |
| 29 |
thread: thread1 |
| 30 |
- name: start |
| 31 |
target: thread2 |
| 32 |
- name: checkOut |
| 33 |
thread: thread2 |
| 34 |
|
| 35 |
- name: waitForEvent |
| 36 |
event: ConnectionCreated |
| 37 |
count: 2 |
| 38 |
|
| 39 |
|
| 40 |
- name: start |
| 41 |
target: thread3 |
| 42 |
- name: checkOut |
| 43 |
thread: thread3 |
| 44 |
- name: waitForEvent |
| 45 |
event: ConnectionCheckOutFailed |
| 46 |
count: 1 |
| 47 |
|
| 48 |
- name: waitForThread |
| 49 |
target: thread3 |
| 50 |
error: |
| 51 |
type: WaitQueueTimeoutError |
| 52 |
message: Timed out while checking out a connection from connection pool |
| 53 |
events: |
| 54 |
- type: ConnectionCheckOutStarted |
| 55 |
address: 42 |
| 56 |
- type: ConnectionCheckOutStarted |
| 57 |
address: 42 |
| 58 |
- type: ConnectionCheckOutStarted |
| 59 |
address: 42 |
| 60 |
- type: ConnectionCheckOutFailed |
| 61 |
reason: timeout |
| 62 |
address: 42 |
| 63 |
ignore: |
| 64 |
- ConnectionCreated |
| 65 |
- ConnectionCheckedIn |
| 66 |
- ConnectionCheckedOut |
| 67 |
- ConnectionClosed |
| 68 |
- ConnectionPoolCreated |
| 69 |
- ConnectionPoolReady |