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

ZooKeeperCuratorHelper: wrong argument order when creating a new ExponentialBackoffRetry

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.1, 3.5.0
    • Component/s: camel-zookeeper
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: