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

Race condition during bootstrap can lead to IllegalStateException: Tried to add duplicate channel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 0.43.0
    • None
    • None
    • 0

    Description

      Prior to DCP client version 0.43.0, it was possible for the Couchbase cluster to start returning config updates before the connector finished connecting to the seed nodes. This could result in the client attempting to connect to the same node twice, which lead to IllegalStateException: Tried to add duplicate channel

      From version 0.43.0 onward, all config updates are serialized, including the initial update where the seed nodes are added. As a result, config updates from the server are not processed until all of the initial channels are added.

      https://review.couchbase.org/c/java-dcp-client/+/182159/2/src/main/java/com/couchbase/client/dcp/conductor/Conductor.java#145

       

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty