...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-monitoring-and-pooling/pool-clear-interrupting-pending-connections.json

Documentation: go.mongodb.org/mongo-driver/testdata/connection-monitoring-and-pooling

     1{
     2  "version": 1,
     3  "style": "integration",
     4  "description": "clear with interruptInUseConnections = true closes pending connections",
     5  "runOn": [
     6    {
     7      "minServerVersion": "4.9.0"
     8    }
     9  ],
    10  "failPoint": {
    11    "configureFailPoint": "failCommand",
    12    "mode": "alwaysOn",
    13    "data": {
    14      "failCommands": [
    15        "isMaster",
    16        "hello"
    17      ],
    18      "closeConnection": false,
    19      "blockConnection": true,
    20      "blockTimeMS": 1000
    21    }
    22  },
    23  "poolOptions": {
    24    "minPoolSize": 0
    25  },
    26  "operations": [
    27    {
    28      "name": "ready"
    29    },
    30    {
    31      "name": "start",
    32      "target": "thread1"
    33    },
    34    {
    35      "name": "checkOut",
    36      "thread": "thread1"
    37    },
    38    {
    39      "name": "waitForEvent",
    40      "event": "ConnectionCreated",
    41      "count": 1
    42    },
    43    {
    44      "name": "clear",
    45      "interruptInUseConnections": true
    46    },
    47    {
    48      "name": "waitForEvent",
    49      "event": "ConnectionCheckOutFailed",
    50      "count": 1
    51    }
    52  ],
    53  "events": [
    54    {
    55      "type": "ConnectionCheckOutStarted"
    56    },
    57    {
    58      "type": "ConnectionCreated"
    59    },
    60    {
    61      "type": "ConnectionPoolCleared",
    62      "interruptInUseConnections": true
    63    },
    64    {
    65      "type": "ConnectionClosed"
    66    },
    67    {
    68      "type": "ConnectionCheckOutFailed"
    69    }
    70  ],
    71  "ignore": [
    72    "ConnectionCheckedIn",
    73    "ConnectionCheckedOut",
    74    "ConnectionPoolCreated",
    75    "ConnectionPoolReady"
    76  ]
    77}

View as plain text