mongo-python-driver/test/cmap/pool-close-destroy-conns.json
Shane Harvey 86b40c195d
PYTHON-2462 Avoid connection storms: implement pool PAUSED state (#531)
Mark server unknown and clear the pool when background connections fail.
Eagerly evict threads from the wait queue when pool is paused. Evicted
threads will raise the following error:
AutoReconnect('localhost:27017: connection pool paused')
Introduce PoolClearedEvent and ConnectionPoolListener.pool_ready.

CMAP spec test changes:
- CMAP unit tests should not use real monitors
- Assert that CMAP threads complete all scheduled operations
2021-01-06 15:15:37 -08:00

53 lines
925 B
JSON

{
"version": 1,
"style": "unit",
"description": "When a pool is closed, it MUST first destroy all available connections in that pool",
"operations": [
{
"name": "ready"
},
{
"name": "checkOut"
},
{
"name": "checkOut",
"label": "conn"
},
{
"name": "checkOut"
},
{
"name": "checkIn",
"connection": "conn"
},
{
"name": "close"
}
],
"events": [
{
"type": "ConnectionCheckedIn",
"connectionId": 2,
"address": 42
},
{
"type": "ConnectionClosed",
"connectionId": 2,
"reason": "poolClosed",
"address": 42
},
{
"type": "ConnectionPoolClosed",
"address": 42
}
],
"ignore": [
"ConnectionCreated",
"ConnectionPoolReady",
"ConnectionReady",
"ConnectionPoolCreated",
"ConnectionCheckOutStarted",
"ConnectionCheckedOut"
]
}