...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-monitoring-and-pooling/pool-clear-interrupt-immediately.json

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

     1{
     2  "version": 1,
     3  "style": "unit",
     4  "description": "Connections MUST be interrupted as soon as possible (interruptInUseConnections=true)",
     5  "poolOptions": {
     6    "backgroundThreadIntervalMS": 10000
     7  },
     8  "operations": [
     9    {
    10      "name": "ready"
    11    },
    12    {
    13      "name": "checkOut"
    14    },
    15    {
    16      "name": "checkOut",
    17      "label": "conn"
    18    },
    19    {
    20      "name": "clear",
    21      "interruptInUseConnections": true
    22    },
    23    {
    24      "name": "waitForEvent",
    25      "event": "ConnectionPoolCleared",
    26      "count": 1,
    27      "timeout": 1000
    28    },
    29    {
    30      "name": "waitForEvent",
    31      "event": "ConnectionClosed",
    32      "count": 2,
    33      "timeout": 1000
    34    },
    35    {
    36      "name": "close"
    37    }
    38  ],
    39  "events": [
    40    {
    41      "type": "ConnectionCheckedOut",
    42      "connectionId": 1,
    43      "address": 42
    44    },
    45    {
    46      "type": "ConnectionCheckedOut",
    47      "connectionId": 2,
    48      "address": 42
    49    },
    50    {
    51      "type": "ConnectionPoolCleared",
    52      "interruptInUseConnections": true
    53    },
    54    {
    55      "type": "ConnectionClosed",
    56      "reason": "stale",
    57      "address": 42
    58    },
    59    {
    60      "type": "ConnectionClosed",
    61      "reason": "stale",
    62      "address": 42
    63    },
    64    {
    65      "type": "ConnectionPoolClosed",
    66      "address": 42
    67    }
    68  ],
    69  "ignore": [
    70    "ConnectionCreated",
    71    "ConnectionPoolReady",
    72    "ConnectionReady",
    73    "ConnectionCheckOutStarted",
    74    "ConnectionPoolCreated",
    75    "ConnectionCheckedIn"
    76  ]
    77}

View as plain text