Elffuss BraidHub

kikocis/java-driver public

Log datacenter name in DCAware policy's init when it is explicitly provided (JAVA-423).
Changesete797475d438ea798cf740dba6da296637539b5debaa30f72874a22a41a4677b8
Authorolim7t <omichallat+github@gmail.com> · 2014-10-15 20:05 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2014-10-15 20:07 +02:00
Parents47198e2e04ca

Browse the files at this changeset

2 files changed

modified driver-core/CHANGELOG.rst +2 −0
@@ -15,6 +15,8 @@
1515 - [improvement] Allow load balancing policy to trigger refresh for a single host (JAVA-459)
1616 - [bug] Expose an API to cancel reconnection attempts (JAVA-493)
1717 - [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)
1820
1921
2022 2.0.6:
modified driver-core/src/main/java/com/datastax/driver/core/policies/DCAwareRoundRobinPolicy.java +3 −0
@@ -175,6 +175,9 @@
175175
176176 @Override
177177 public void init(Cluster cluster, Collection<Host> hosts) {
178+ if (localDc != UNSET)
179+ logger.info("Using provided data-center name '{}' for DCAwareRoundRobinPolicy", localDc);
180+
178181 this.configuration = cluster.getConfiguration();
179182
180183 for (Host host : hosts) {