kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | e797475d438ea798cf740dba6da296637539b5debaa30f72874a22a41a4677b8 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-10-15 20:05 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-10-15 20:07 +02:00 |
| Parents | 47198e2e04ca |
2 files changed
modified driver-core/CHANGELOG.rst +2 −0
| @@ -15,6 +15,8 @@ | ||
| 15 | 15 | - [improvement] Allow load balancing policy to trigger refresh for a single host (JAVA-459) |
| 16 | 16 | - [bug] Expose an API to cancel reconnection attempts (JAVA-493) |
| 17 | 17 | - [bug] Fix NPE when a connection fails during pool construction (JAVA-503) |
| 18 | +- [improvement] Log datacenter name in DCAware policy's init when it is explicitly provided | |
| 19 | + (JAVA-423) | |
| 18 | 20 | |
| 19 | 21 | |
| 20 | 22 | 2.0.6: |
modified driver-core/src/main/java/com/datastax/driver/core/policies/DCAwareRoundRobinPolicy.java +3 −0
| @@ -175,6 +175,9 @@ | ||
| 175 | 175 | |
| 176 | 176 | @Override |
| 177 | 177 | public void init(Cluster cluster, Collection<Host> hosts) { |
| 178 | + if (localDc != UNSET) | |
| 179 | + logger.info("Using provided data-center name '{}' for DCAwareRoundRobinPolicy", localDc); | |
| 180 | + | |
| 178 | 181 | this.configuration = cluster.getConfiguration(); |
| 179 | 182 | |
| 180 | 183 | for (Host host : hosts) { |