| 1 | description: wait queue timeout errors include details about checked out connections |
| 2 | |
| 3 | schemaVersion: '1.3' |
| 4 | |
| 5 | runOnRequirements: |
| 6 | - topologies: [ load-balanced ] |
| 7 | |
| 8 | createEntities: |
| 9 | - client: |
| 10 | id: &client0 client0 |
| 11 | useMultipleMongoses: true |
| 12 | uriOptions: |
| 13 | maxPoolSize: 1 |
| 14 | waitQueueTimeoutMS: 50 |
| 15 | observeEvents: |
| 16 | - connectionCheckedOutEvent |
| 17 | - connectionCheckOutFailedEvent |
| 18 | - session: |
| 19 | id: &session0 session0 |
| 20 | client: *client0 |
| 21 | - database: |
| 22 | id: &database0 database0 |
| 23 | client: *client0 |
| 24 | databaseName: &database0Name database0Name |
| 25 | - collection: |
| 26 | id: &collection0 collection0 |
| 27 | database: *database0 |
| 28 | collectionName: &collection0Name coll0 |
| 29 | |
| 30 | initialData: |
| 31 | - collectionName: *collection0Name |
| 32 | databaseName: *database0Name |
| 33 | documents: |
| 34 | - _id: 1 |
| 35 | - _id: 2 |
| 36 | - _id: 3 |
| 37 | |
| 38 | tests: |
| 39 | - description: wait queue timeout errors include cursor statistics |
| 40 | operations: |
| 41 | - name: createFindCursor |
| 42 | object: *collection0 |
| 43 | arguments: |
| 44 | filter: {} |
| 45 | batchSize: 2 |
| 46 | saveResultAsEntity: &cursor0 cursor0 |
| 47 | - name: insertOne |
| 48 | object: *collection0 |
| 49 | arguments: |
| 50 | document: { x: 1 } |
| 51 | expectError: |
| 52 | isClientError: true |
| 53 | errorContains: 'maxPoolSize: 1, connections in use by cursors: 1, connections in use by transactions: 0, connections in use by other operations: 0' |
| 54 | expectEvents: |
| 55 | - client: *client0 |
| 56 | eventType: cmap |
| 57 | events: |
| 58 | - connectionCheckedOutEvent: {} |
| 59 | - connectionCheckOutFailedEvent: {} |
| 60 | |
| 61 | - description: wait queue timeout errors include transaction statistics |
| 62 | operations: |
| 63 | - name: startTransaction |
| 64 | object: *session0 |
| 65 | - name: insertOne |
| 66 | object: *collection0 |
| 67 | arguments: |
| 68 | document: { x: 1 } |
| 69 | session: *session0 |
| 70 | - name: insertOne |
| 71 | object: *collection0 |
| 72 | arguments: |
| 73 | document: { x: 1 } |
| 74 | expectError: |
| 75 | isClientError: true |
| 76 | errorContains: 'maxPoolSize: 1, connections in use by cursors: 0, connections in use by transactions: 1, connections in use by other operations: 0' |
| 77 | expectEvents: |
| 78 | - client: *client0 |
| 79 | eventType: cmap |
| 80 | events: |
| 81 | - connectionCheckedOutEvent: {} |
| 82 | - connectionCheckOutFailedEvent: {} |