You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ahmed M (Jira)" <ji...@apache.org> on 2020/06/30 20:50:00 UTC
[jira] [Updated] (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 ]
Ahmed M updated CAMEL-15262:
----------------------------
Priority: Minor (was: Major)
> 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
> 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)