...

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

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

     1{
     2  "version": 1,
     3  "style": "integration",
     4  "description": "threads blocked by maxConnecting check out returned connections",
     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": 5000
    28  },
    29  "operations": [
    30    {
    31      "name": "ready"
    32    },
    33    {
    34      "name": "checkOut",
    35      "label": "conn0"
    36    },
    37    {
    38      "name": "start",
    39      "target": "thread1"
    40    },
    41    {
    42      "name": "checkOut",
    43      "thread": "thread1"
    44    },
    45    {
    46      "name": "start",
    47      "target": "thread2"
    48    },
    49    {
    50      "name": "checkOut",
    51      "thread": "thread2"
    52    },
    53    {
    54      "name": "start",
    55      "target": "thread3"
    56    },
    57    {
    58      "name": "checkOut",
    59      "thread": "thread3"
    60    },
    61    {
    62      "name": "waitForEvent",
    63      "event": "ConnectionCheckOutStarted",
    64      "count": 4
    65    },
    66    {
    67      "name": "wait",
    68      "ms": 100
    69    },
    70    {
    71      "name": "checkIn",
    72      "connection": "conn0"
    73    },
    74    {
    75      "name": "waitForEvent",
    76      "event": "ConnectionCheckedOut",
    77      "count": 4
    78    }
    79  ],
    80  "events": [
    81    {
    82      "type": "ConnectionCreated",
    83      "address": 42,
    84      "connectionId": 1
    85    },
    86    {
    87      "type": "ConnectionCheckedOut",
    88      "address": 42
    89    },
    90    {
    91      "type": "ConnectionCreated",
    92      "address": 42
    93    },
    94    {
    95      "type": "ConnectionCreated",
    96      "address": 42
    97    },
    98    {
    99      "type": "ConnectionCheckedIn",
   100      "connectionId": 1,
   101      "address": 42
   102    },
   103    {
   104      "type": "ConnectionCheckedOut",
   105      "connectionId": 1,
   106      "address": 42
   107    },
   108    {
   109      "type": "ConnectionCheckedOut",
   110      "address": 42
   111    },
   112    {
   113      "type": "ConnectionCheckedOut",
   114      "address": 42
   115    }
   116  ],
   117  "ignore": [
   118    "ConnectionPoolReady",
   119    "ConnectionClosed",
   120    "ConnectionReady",
   121    "ConnectionPoolCreated",
   122    "ConnectionCheckOutStarted"
   123  ]
   124}

View as plain text