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
39 lines
640 B
JSON
39 lines
640 B
JSON
{
|
|
"version": 1,
|
|
"style": "unit",
|
|
"description": "must be able to check out a connection",
|
|
"operations": [
|
|
{
|
|
"name": "ready"
|
|
},
|
|
{
|
|
"name": "checkOut"
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"type": "ConnectionCheckOutStarted",
|
|
"address": 42
|
|
},
|
|
{
|
|
"type": "ConnectionCreated",
|
|
"connectionId": 1,
|
|
"address": 42
|
|
},
|
|
{
|
|
"type": "ConnectionReady",
|
|
"connectionId": 1,
|
|
"address": 42
|
|
},
|
|
{
|
|
"type": "ConnectionCheckedOut",
|
|
"connectionId": 1,
|
|
"address": 42
|
|
}
|
|
],
|
|
"ignore": [
|
|
"ConnectionPoolReady",
|
|
"ConnectionPoolCreated"
|
|
]
|
|
}
|