File: pool-create-min-size-error.yml

package info (click to toggle)
ruby-mongo 2.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,764 kB
  • sloc: ruby: 108,806; makefile: 5; sh: 2
file content (43 lines) | stat: -rw-r--r-- 1,160 bytes parent folder | download
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
version: 1
style: integration
description: error during minPoolSize population clears pool
runOn:
  -
    # required for appName in fail point
    minServerVersion: "4.9.0"
  # Remove the topology runOn requirement when cmap specs are adjusted for lbs
  - topology: [ "single", "replicaset", "sharded" ]
failPoint:
  configureFailPoint: failCommand
  # high amount to ensure not interfered with by monitor checks.
  mode: { times: 50 }
  data:
    failCommands: ["isMaster","hello"]
    closeConnection: true
    appName: "poolCreateMinSizeErrorTest"
poolOptions:
  minPoolSize: 1
  backgroundThreadIntervalMS: 50
  appName: "poolCreateMinSizeErrorTest"
operations:
  - name: ready
  - name: waitForEvent
    event: ConnectionPoolCleared
    count: 1
  # ensure pool doesn't start making new connections
  - name: wait
    ms: 200
events:
  - type: ConnectionPoolReady
    address: 42
  - type: ConnectionCreated
    address: 42
  # The ruby driver clears the pool before closing the connection.
  - type: ConnectionPoolCleared
    address: 42
  - type: ConnectionClosed
    address: 42
    connectionId: 42
    reason: error
ignore:
  - ConnectionPoolCreated