...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-monitoring-and-pooling/pool-checkout-custom-maxConnecting-is-enforced.json

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

     1{
     2  "version": 1,
     3  "style": "integration",
     4  "description": "custom maxConnecting is enforced",
     5  "runOn": [
     6    {
     7      "minServerVersion": "4.4.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": 500
    21    }
    22  },
    23  "poolOptions": {
    24    "maxConnecting": 1,
    25    "maxPoolSize": 2,
    26    "waitQueueTimeoutMS": 5000
    27  },
    28  "operations": [
    29    {
    30      "name": "ready"
    31    },
    32    {
    33      "name": "start",
    34      "target": "thread1"
    35    },
    36    {
    37      "name": "start",
    38      "target": "thread2"
    39    },
    40    {
    41      "name": "checkOut",
    42      "thread": "thread1"
    43    },
    44    {
    45      "name": "waitForEvent",
    46      "event": "ConnectionCreated",
    47      "count": 1
    48    },
    49    {
    50      "name": "checkOut",
    51      "thread": "thread2"
    52    },
    53    {
    54      "name": "waitForEvent",
    55      "event": "ConnectionReady",
    56      "count": 2
    57    }
    58  ],
    59  "events": [
    60    {
    61      "type": "ConnectionCreated"
    62    },
    63    {
    64      "type": "ConnectionReady"
    65    },
    66    {
    67      "type": "ConnectionCreated"
    68    },
    69    {
    70      "type": "ConnectionReady"
    71    }
    72  ],
    73  "ignore": [
    74    "ConnectionCheckOutStarted",
    75    "ConnectionCheckedIn",
    76    "ConnectionCheckedOut",
    77    "ConnectionClosed",
    78    "ConnectionPoolCreated",
    79    "ConnectionPoolReady"
    80  ]
    81}

View as plain text