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
67 lines
1.1 KiB
JSON
67 lines
1.1 KiB
JSON
{
|
|
"version": 1,
|
|
"style": "unit",
|
|
"description": "must be able to start a pool with minPoolSize connections",
|
|
"poolOptions": {
|
|
"minPoolSize": 3
|
|
},
|
|
"operations": [
|
|
{
|
|
"name": "wait",
|
|
"ms": 200
|
|
},
|
|
{
|
|
"name": "ready"
|
|
},
|
|
{
|
|
"name": "waitForEvent",
|
|
"event": "ConnectionCreated",
|
|
"count": 3
|
|
},
|
|
{
|
|
"name": "waitForEvent",
|
|
"event": "ConnectionReady",
|
|
"count": 3
|
|
},
|
|
{
|
|
"name": "checkOut"
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"type": "ConnectionPoolCreated",
|
|
"address": 42,
|
|
"options": 42
|
|
},
|
|
{
|
|
"type": "ConnectionPoolReady",
|
|
"address": 42
|
|
},
|
|
{
|
|
"type": "ConnectionCreated",
|
|
"connectionId": 42,
|
|
"address": 42
|
|
},
|
|
{
|
|
"type": "ConnectionCreated",
|
|
"connectionId": 42,
|
|
"address": 42
|
|
},
|
|
{
|
|
"type": "ConnectionCreated",
|
|
"connectionId": 42,
|
|
"address": 42
|
|
},
|
|
{
|
|
"type": "ConnectionCheckedOut",
|
|
"connectionId": 42,
|
|
"address": 42
|
|
}
|
|
],
|
|
"ignore": [
|
|
"ConnectionReady",
|
|
"ConnectionClosed",
|
|
"ConnectionCheckOutStarted"
|
|
]
|
|
}
|