hazelcast / hazelcast/hazelcast-cpp-client
[TRACKING ISSUE] Add validations to connection retry config and fix sleep time calcula…
Open
- Dominant language
- C++
- Stars
- 91
- Forks
- 54
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 5
Description
The tracking issue for the Java side PR.
**Add validations to connection retry config and fix sleep time calcula…**
See https://github.com/hazelcast/hazelcast/pull/17018 for details.
---
…tion
There were missing validation checks on the ConnectionRetryConfig.
The following checks are added
initialBackoffMillis -> [0, inf)
maxBackoffMillis -> [0, inf)
multiplier -> [1.0, inf)
jitter -> [0.0, 1.0]
clusterConnectionTimeoutMillis -> [0, inf)
Also, `actualSleepTime` calculation was wrong. It was calculating
sleep time in range
[currentBackoffMilis - jitter * currentBackoffMillis, currentBackoffMillis].
Contributor guide
Assessment
This issue has not been assessed yet.