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

DcpChannel is not using the configured dcpChannelsReconnectMaxAttempts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • .future
    • 0.17.0, 0.18.0
    • None
    • 1

    Description

      In the line 213, method dispatchReconnect() of the class DcpChannel, the following code makes the Client reconnect:

      connect()
      .retryWhen(any().max(Integer.MAX_VALUE).delay(Delay.exponential(TimeUnit.MILLISECONDS, 4096, 32))
      .doOnRetry(new Action4<Integer, Throwable, Long, TimeUnit>() {
      @Override
      public void call(Integer integer, Throwable throwable, Long aLong, TimeUnit timeUnit) {
      LOGGER.debug("Rescheduling Node reconnect for DCP channel {}", inetAddress);
      }
      }).build())
      

      Maybe the original idea was to use the value configured when the
      [com|eclipse-javadoc:%E2%98%82=dcp-client/src%5C/main%5C/java%3Ccom].[couchbase|eclipse-javadoc:%E2%98%82=dcp-client/src%5C/main%5C/java%3Ccom.couchbase].[client|eclipse-javadoc:%E2%98%82=dcp-client/src%5C/main%5C/java%3Ccom.couchbase.client].[dcp|eclipse-javadoc:%E2%98%82=dcp-client/src%5C/main%5C/java%3Ccom.couchbase.client.dcp].Client  is instantiated, in the following way:
       

      connect()
      .retryWhen(any().max(env.dcpChannelsReconnectMaxAttempts()).delay(Delay.exponential(TimeUnit.MILLISECONDS, 4096, 32))

       

      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
              ascione.d Daniele Ascione
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Gerrit Reviews

                    There are no open Gerrit changes

                    PagerDuty