...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-monitoring-and-pooling/pool-create-max-size.json

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

     1{
     2  "version": 1,
     3  "style": "unit",
     4  "description": "must never exceed maxPoolSize total connections",
     5  "poolOptions": {
     6    "maxPoolSize": 3
     7  },
     8  "operations": [
     9    {
    10      "name": "ready"
    11    },
    12    {
    13      "name": "checkOut",
    14      "label": "conn1"
    15    },
    16    {
    17      "name": "checkOut"
    18    },
    19    {
    20      "name": "checkOut",
    21      "label": "conn2"
    22    },
    23    {
    24      "name": "checkIn",
    25      "connection": "conn2"
    26    },
    27    {
    28      "name": "checkOut"
    29    },
    30    {
    31      "name": "start",
    32      "target": "thread1"
    33    },
    34    {
    35      "name": "checkOut",
    36      "thread": "thread1"
    37    },
    38    {
    39      "name": "waitForEvent",
    40      "event": "ConnectionCheckOutStarted",
    41      "count": 5
    42    },
    43    {
    44      "name": "checkIn",
    45      "connection": "conn1"
    46    },
    47    {
    48      "name": "waitForThread",
    49      "target": "thread1"
    50    }
    51  ],
    52  "events": [
    53    {
    54      "type": "ConnectionPoolCreated",
    55      "address": 42,
    56      "options": 42
    57    },
    58    {
    59      "type": "ConnectionCheckOutStarted",
    60      "address": 42
    61    },
    62    {
    63      "type": "ConnectionCreated",
    64      "connectionId": 42,
    65      "address": 42
    66    },
    67    {
    68      "type": "ConnectionCheckedOut",
    69      "connectionId": 42,
    70      "address": 42
    71    },
    72    {
    73      "type": "ConnectionCheckOutStarted",
    74      "address": 42
    75    },
    76    {
    77      "type": "ConnectionCreated",
    78      "connectionId": 42,
    79      "address": 42
    80    },
    81    {
    82      "type": "ConnectionCheckedOut",
    83      "connectionId": 42,
    84      "address": 42
    85    },
    86    {
    87      "type": "ConnectionCheckOutStarted",
    88      "address": 42
    89    },
    90    {
    91      "type": "ConnectionCreated",
    92      "connectionId": 42,
    93      "address": 42
    94    },
    95    {
    96      "type": "ConnectionCheckedOut",
    97      "connectionId": 42,
    98      "address": 42
    99    },
   100    {
   101      "type": "ConnectionCheckedIn",
   102      "connectionId": 42,
   103      "address": 42
   104    },
   105    {
   106      "type": "ConnectionCheckOutStarted",
   107      "address": 42
   108    },
   109    {
   110      "type": "ConnectionCheckedOut",
   111      "connectionId": 42,
   112      "address": 42
   113    },
   114    {
   115      "type": "ConnectionCheckOutStarted",
   116      "address": 42
   117    },
   118    {
   119      "type": "ConnectionCheckedIn",
   120      "connectionId": 42,
   121      "address": 42
   122    },
   123    {
   124      "type": "ConnectionCheckedOut",
   125      "connectionId": 42,
   126      "address": 42
   127    }
   128  ],
   129  "ignore": [
   130    "ConnectionReady",
   131    "ConnectionPoolReady"
   132  ]
   133}

View as plain text