Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4784

Cancel pending connections when monitor check fails with network error

    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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'

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: