kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 477a0fea0b6a3a383b1e1fe8ffbee76b1c35a081f85f34aea4d28054dace928a |
|---|---|
| Author | Olivier Michallat <olim7t@users.noreply.github.com> · 2016-06-27 11:04 -07:00 |
| Committer | GitHub <noreply@github.com> · 2016-06-27 11:04 -07:00 |
| Parents | cf98cf21fe63 |
2 files changed
modified changelog/README.md +1 −0
| @@ -7,6 +7,7 @@ | ||
| 7 | 7 | - [bug] JAVA-1209: ProtocolOptions.getProtocolVersion() should return null instead of throwing NPE if Cluster has not |
| 8 | 8 | been init'd. |
| 9 | 9 | - [improvement] JAVA-1204: Update documentation to indicate tcnative version requirement. |
| 10 | +- [bug] JAVA-1186: Fix duplicated hosts in DCAwarePolicy warn message. | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | ### 3.0.2 |
modified driver-core/src/main/java/com/datastax/driver/core/policies/DCAwareRoundRobinPolicy.java +0 −2
| @@ -97,8 +97,6 @@ | ||
| 97 | 97 | } else if (!dc.equals(localDc)) |
| 98 | 98 | notInLocalDC.add(String.format("%s (%s)", host.toString(), dc)); |
| 99 | 99 | |
| 100 | - if (!dc.equals(localDc)) notInLocalDC.add(String.format("%s (%s)", host.toString(), host.getDatacenter())); | |
| 101 | - | |
| 102 | 100 | CopyOnWriteArrayList<Host> prev = perDcLiveHosts.get(dc); |
| 103 | 101 | if (prev == null) |
| 104 | 102 | perDcLiveHosts.put(dc, new CopyOnWriteArrayList<Host>(Collections.singletonList(host))); |