Elffuss BraidHub

kikocis/java-driver public

JAVA-1187: Fix warning message when local CL used with RoundRobinPolicy. (#672)

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

Browse the files at this changeset

2 files changed

modified changelog/README.md +1 −0
@@ -8,6 +8,7 @@
88 been init'd.
99 - [improvement] JAVA-1204: Update documentation to indicate tcnative version requirement.
1010 - [bug] JAVA-1186: Fix duplicated hosts in DCAwarePolicy warn message.
11+- [bug] JAVA-1187: Fix warning message when local CL used with RoundRobinPolicy.
1112
1213
1314 ### 3.0.2
modified driver-core/src/main/java/com/datastax/driver/core/policies/RoundRobinPolicy.java +1 −1
@@ -102,7 +102,7 @@
102102 hasLoggedLocalCLUse = true;
103103 logger.warn("Detected request at Consistency Level {} but the non-DC aware RoundRobinPolicy is in use. "
104104 + "It is strongly advised to use DCAwareRoundRobinPolicy if you have multiple DCs/use DC-aware consistency levels "
105- + "(note: this message will only be logged once)", statement.getConsistencyLevel());
105+ + "(note: this message will only be logged once)", cl);
106106 }
107107 }
108108