-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GODRIVER-2335 Preemptively cancel in progress operations when SDAM he…
…artbeats timeout. (#1549)
- Loading branch information
1 parent
556e2f2
commit 9c6603d
Showing
22 changed files
with
1,572 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
testdata/connection-monitoring-and-pooling/pool-clear-interrupt-immediately.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"version": 1, | ||
"style": "unit", | ||
"description": "Connections MUST be interrupted as soon as possible (interruptInUseConnections=true)", | ||
"poolOptions": { | ||
"backgroundThreadIntervalMS": 10000 | ||
}, | ||
"operations": [ | ||
{ | ||
"name": "ready" | ||
}, | ||
{ | ||
"name": "checkOut" | ||
}, | ||
{ | ||
"name": "checkOut", | ||
"label": "conn" | ||
}, | ||
{ | ||
"name": "clear", | ||
"interruptInUseConnections": true | ||
}, | ||
{ | ||
"name": "waitForEvent", | ||
"event": "ConnectionPoolCleared", | ||
"count": 1, | ||
"timeout": 1000 | ||
}, | ||
{ | ||
"name": "waitForEvent", | ||
"event": "ConnectionClosed", | ||
"count": 2, | ||
"timeout": 1000 | ||
}, | ||
{ | ||
"name": "close" | ||
} | ||
], | ||
"events": [ | ||
{ | ||
"type": "ConnectionCheckedOut", | ||
"connectionId": 1, | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionCheckedOut", | ||
"connectionId": 2, | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionPoolCleared", | ||
"interruptInUseConnections": true | ||
}, | ||
{ | ||
"type": "ConnectionClosed", | ||
"reason": "stale", | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionClosed", | ||
"reason": "stale", | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionPoolClosed", | ||
"address": 42 | ||
} | ||
], | ||
"ignore": [ | ||
"ConnectionCreated", | ||
"ConnectionPoolReady", | ||
"ConnectionReady", | ||
"ConnectionCheckOutStarted", | ||
"ConnectionPoolCreated", | ||
"ConnectionCheckedIn" | ||
] | ||
} |
46 changes: 46 additions & 0 deletions
46
testdata/connection-monitoring-and-pooling/pool-clear-interrupt-immediately.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: 1 | ||
style: unit | ||
description: Connections MUST be interrupted as soon as possible (interruptInUseConnections=true) | ||
poolOptions: | ||
# ensure it's not involved by default | ||
backgroundThreadIntervalMS: 10000 | ||
operations: | ||
- name: ready | ||
- name: checkOut | ||
- name: checkOut | ||
label: conn | ||
- name: clear | ||
interruptInUseConnections: true | ||
- name: waitForEvent | ||
event: ConnectionPoolCleared | ||
count: 1 | ||
timeout: 1000 | ||
- name: waitForEvent | ||
event: ConnectionClosed | ||
count: 2 | ||
timeout: 1000 | ||
- name: close | ||
events: | ||
- type: ConnectionCheckedOut | ||
connectionId: 1 | ||
address: 42 | ||
- type: ConnectionCheckedOut | ||
connectionId: 2 | ||
address: 42 | ||
- type: ConnectionPoolCleared | ||
interruptInUseConnections: true | ||
- type: ConnectionClosed | ||
reason: stale | ||
address: 42 | ||
- type: ConnectionClosed | ||
reason: stale | ||
address: 42 | ||
- type: ConnectionPoolClosed | ||
address: 42 | ||
ignore: | ||
- ConnectionCreated | ||
- ConnectionPoolReady | ||
- ConnectionReady | ||
- ConnectionCheckOutStarted | ||
- ConnectionPoolCreated | ||
- ConnectionCheckedIn |
Oops, something went wrong.