You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2020/07/01 09:25:00 UTC

[jira] [Assigned] (CAMEL-15262) ZooKeeperCuratorHelper: wrong argument order when creating a new ExponentialBackoffRetry

     [ https://issues.apache.org/jira/browse/CAMEL-15262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Cosentino reassigned CAMEL-15262:
----------------------------------------

    Assignee: Andrea Cosentino

> ZooKeeperCuratorHelper: wrong argument order when creating a new ExponentialBackoffRetry
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-15262
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15262
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-zookeeper
>    Affects Versions: 3.4.0, 3.4.1
>            Reporter: Ahmed M
>            Assignee: Andrea Cosentino
>            Priority: Minor
>
> The constructor args {{maxRetries}}  (reconnectMaxRetries) and {{maxSleepMs}} (reconnectMaxSleepTime) are reversed when creating a new {{ExponentialBackoffRetry}} in {{ZooKeeperCuratorHelper.createCurator}} :
> {code::title=ZooKeeperCuratorHelper.java}
> if (retryPolicy == null) {
>     retryPolicy = new ExponentialBackoffRetry(
>         (int)configuration.getReconnectBaseSleepTimeUnit().toMillis(configuration.getReconnectBaseSleepTime()),
>         (int)configuration.getReconnectMaxSleepTimeUnit().toMillis(configuration.getReconnectMaxSleepTime()),
>         configuration.getReconnectMaxRetries());
> }
> {code}
> [CuratorFramework API javadoc|https://curator.apache.org/apidocs/org/apache/curator/retry/ExponentialBackoffRetry.html]:
> {code:java}
> ExponentialBackoffRetry(int baseSleepTimeMs, int maxRetries, int maxSleepMs) 
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)