Elffuss BraidHub

kikocis/java-driver public

JAVA-1186: Fix duplicated hosts in DCAwarePolicy warn message. (#673)

Changeset477a0fea0b6a3a383b1e1fe8ffbee76b1c35a081f85f34aea4d28054dace928a
AuthorOlivier Michallat <olim7t@users.noreply.github.com> · 2016-06-27 11:04 -07:00
CommitterGitHub <noreply@github.com> · 2016-06-27 11:04 -07:00
Parentscf98cf21fe63

Browse the files at this changeset

2 files changed

modified changelog/README.md +1 −0
@@ -7,6 +7,7 @@
77 - [bug] JAVA-1209: ProtocolOptions.getProtocolVersion() should return null instead of throwing NPE if Cluster has not
88 been init'd.
99 - [improvement] JAVA-1204: Update documentation to indicate tcnative version requirement.
10+- [bug] JAVA-1186: Fix duplicated hosts in DCAwarePolicy warn message.
1011
1112
1213 ### 3.0.2
modified driver-core/src/main/java/com/datastax/driver/core/policies/DCAwareRoundRobinPolicy.java +0 −2
@@ -97,8 +97,6 @@
9797 } else if (!dc.equals(localDc))
9898 notInLocalDC.add(String.format("%s (%s)", host.toString(), dc));
9999
100- if (!dc.equals(localDc)) notInLocalDC.add(String.format("%s (%s)", host.toString(), host.getDatacenter()));
101-
102100 CopyOnWriteArrayList<Host> prev = perDcLiveHosts.get(dc);
103101 if (prev == null)
104102 perDcLiveHosts.put(dc, new CopyOnWriteArrayList<Host>(Collections.singletonList(host)));