kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 1210f1743d7c2ae3e076528f226ecd8d3f65f9dfb3f58323740941075d64ab21 |
|---|---|
| Author | Sylvain Lebresne <sylvain@datastax.com> · 2014-05-05 11:00 +02:00 |
| Committer | Sylvain Lebresne <sylvain@datastax.com> · 2014-05-05 11:00 +02:00 |
| Parents | 64954d6d69df |
2 files changed
modified driver-core/CHANGELOG.rst +1 −0
| @@ -9,6 +9,7 @@ | ||
| 9 | 9 | - [new] Add new WhiteListPolicy to limit the nodes connected to a particular list |
| 10 | 10 | - [improvement] Do not hop DC for LOCAL_* CL in DCAwareRoundRobinPolicy (JAVA-289) |
| 11 | 11 | - [bug] Revert back to longs for dates in the query builder (JAVA-313) |
| 12 | +- [bug] Don't reconnect to nodes ignored by the load balancing policy (JAVA-314) | |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 | 1.0.6: |
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +4 −0
| @@ -1010,6 +1010,10 @@ | ||
| 1010 | 1010 | listener.onDown(host); |
| 1011 | 1011 | } |
| 1012 | 1012 | |
| 1013 | + // Don't start a reconnection if we ignore the node anyway (JAVA-314) | |
| 1014 | + if (loadBalancingPolicy().distance(host) == HostDistance.IGNORED) | |
| 1015 | + return; | |
| 1016 | + | |
| 1013 | 1017 | // Note: we basically waste the first successful reconnection, but it's probably not a big deal |
| 1014 | 1018 | logger.debug("{} is down, scheduling connection retries", host); |
| 1015 | 1019 | new AbstractReconnectionHandler(reconnectionExecutor, reconnectionPolicy().newSchedule(), host.reconnectionAttempt) { |