...

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

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

     1{
     2  "version": 1,
     3  "style": "integration",
     4  "description": "waiting on maxConnecting is limited by WaitQueueTimeoutMS",
     5  "runOn": [
     6    {
     7      "minServerVersion": "4.4.0"
     8    }
     9  ],
    10  "failPoint": {
    11    "configureFailPoint": "failCommand",
    12    "mode": {
    13      "times": 50
    14    },
    15    "data": {
    16      "failCommands": [
    17        "isMaster",
    18        "hello"
    19      ],
    20      "closeConnection": false,
    21      "blockConnection": true,
    22      "blockTimeMS": 750
    23    }
    24  },
    25  "poolOptions": {
    26    "maxPoolSize": 10,
    27    "waitQueueTimeoutMS": 50
    28  },
    29  "operations": [
    30    {
    31      "name": "ready"
    32    },
    33    {
    34      "name": "start",
    35      "target": "thread1"
    36    },
    37    {
    38      "name": "checkOut",
    39      "thread": "thread1"
    40    },
    41    {
    42      "name": "start",
    43      "target": "thread2"
    44    },
    45    {
    46      "name": "checkOut",
    47      "thread": "thread2"
    48    },
    49    {
    50      "name": "waitForEvent",
    51      "event": "ConnectionCreated",
    52      "count": 2
    53    },
    54    {
    55      "name": "start",
    56      "target": "thread3"
    57    },
    58    {
    59      "name": "checkOut",
    60      "thread": "thread3"
    61    },
    62    {
    63      "name": "waitForEvent",
    64      "event": "ConnectionCheckOutFailed",
    65      "count": 1
    66    },
    67    {
    68      "name": "waitForThread",
    69      "target": "thread3"
    70    }
    71  ],
    72  "error": {
    73    "type": "WaitQueueTimeoutError",
    74    "message": "Timed out while checking out a connection from connection pool"
    75  },
    76  "events": [
    77    {
    78      "type": "ConnectionCheckOutStarted",
    79      "address": 42
    80    },
    81    {
    82      "type": "ConnectionCheckOutStarted",
    83      "address": 42
    84    },
    85    {
    86      "type": "ConnectionCheckOutStarted",
    87      "address": 42
    88    },
    89    {
    90      "type": "ConnectionCheckOutFailed",
    91      "reason": "timeout",
    92      "address": 42
    93    }
    94  ],
    95  "ignore": [
    96    "ConnectionCreated",
    97    "ConnectionCheckedIn",
    98    "ConnectionCheckedOut",
    99    "ConnectionClosed",
   100    "ConnectionPoolCreated",
   101    "ConnectionPoolReady"
   102  ]
   103}

View as plain text