Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.4.0
-
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()); }
ExponentialBackoffRetry(int baseSleepTimeMs, int maxRetries, int maxSleepMs)