10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 281436b commit fe0d8b5Copy full SHA for fe0d8b5
driver-core/src/main/java/com/datastax/driver/core/policies/TokenAwarePolicy.java
@@ -178,7 +178,7 @@ protected Host computeNext() {
178
Long hostTimestamp = newHostsEvents.getIfPresent(host);
179
// should be evicted from the cache if present for more than the desired time
180
if (hostTimestamp != null) {
181
- if (ignoreHostRandom.nextDouble() < (IGNORE_NEW_HOST_PROBA / 100)) {
+ if (ignoreHostRandom.nextDouble() < (IGNORE_NEW_HOST_PROBA / 100.0)) {
182
if (LOG.isTraceEnabled()) {
183
LOG.trace(String.format("Host [%s] was chosen for query " +
184
"but will be put at the end of the query plan as it is still in a warm-up phase", host));
0 commit comments