-
Type: Task
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: CMAP
NODE-4094 added support for canceling in-flight operations preemptively when a monitor failed with a network timeout error. At the time of implementation, the ConnectionPool did not support tracking pending connections, and the mechanism in place to cancel pending connections only supported cancellation during the initial socket connection, not during the handshake.
We should add support for canceling pending connections with a retryable error when heartbeats fail.
WRITING-12311 will design a cancellation mechanism for commands and must be done before this work.
Acceptance Criteria
- Cancel pending connections when a monitor check fails with a network error
- Unskip the skipped CMAP spec test
- 'clear with interruptInUseConnections = true closes pending connections'