Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15262

ZooKeeperCuratorHelper: wrong argument order when creating a new ExponentialBackoffRetry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0
    • 3.4.1, 3.5.0
    • camel-zookeeper
    • None
    • Unknown

    Description

      The constructor args maxRetries (reconnectMaxRetries) and maxSleepMs (reconnectMaxSleepTime) are reversed when creating a new ExponentialBackoffRetry in ZooKeeperCuratorHelper.createCurator :

      if (retryPolicy == null) {
          retryPolicy = new ExponentialBackoffRetry(
              (int)configuration.getReconnectBaseSleepTimeUnit().toMillis(configuration.getReconnectBaseSleepTime()),
              (int)configuration.getReconnectMaxSleepTimeUnit().toMillis(configuration.getReconnectMaxSleepTime()),
              configuration.getReconnectMaxRetries());
      }
      

      CuratorFramework API javadoc:

      ExponentialBackoffRetry(int baseSleepTimeMs, int maxRetries, int maxSleepMs) 
      

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            amdmdi Ahmed M
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: