Uploaded image for project: 'Java DCP Client'
  1. Java DCP Client
  2. JDCP-117

Dead connection detection gives false positives when no streams are open

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Labels:
      None
    • Story Points:
      1

      Description

      The server only sends NOOP requests after there has been a successful "open stream" request. However, the client erroneously expects NOOP requests even if no streams are open, leading to "Dead connection detected" messages and the connection being unnecessarily closed and reopened.

      This surfaces in the Kafka connector, where a worker task might need to open streams from only one Couchbase node in a multi-node cluster. In the current implementation, the DCP client still needs to open connections to all nodes in the Couchbase cluster in order to do persistence polling, and to properly respond to cluster topology changes, even if no streams are open on those nodes.

      The false positives have no known impact on correctness. However, needlessly closing connections is inefficient, and it's surprising to see these reconnection warnings in the log.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            david.nault David Nault
            Reporter:
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty