{
  "version": 1,
  "style": "integration",
  "description": "error during minPoolSize population clears pool",
  "runOn": [
    {
      "minServerVersion": "4.9.0"
    }
  ],
  "failPoint": {
    "configureFailPoint": "failCommand",
    "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
    },
    {
      "name": "wait",
      "ms": 200
    }
  ],
  "events": [
    {
      "type": "ConnectionPoolReady",
      "address": 42
    },
    {
      "type": "ConnectionCreated",
      "address": 42
    },
    {
      "type": "ConnectionClosed",
      "address": 42,
      "connectionId": 42,
      "reason": "error"
    },
    {
      "type": "ConnectionPoolCleared",
      "address": 42
    }
  ],
  "ignore": [
    "ConnectionPoolCreated"
  ]
}