Elffuss BraidHub

kikocis/java-driver public

Merge branch 'java1235' into 3.0.x
Changesete967f87184b2b7d9115a187ba258631f9c61d43471df2dc7d693668a95c56368
Authorolim7t <omichallat+github@gmail.com> · 2016-07-13 13:04 -07:00
Committerolim7t <omichallat+github@gmail.com> · 2016-07-13 13:06 -07:00
Parents25e95e52bb76, 16bea4c301ca

Browse the files at this changeset

2 files changed

modified changelog/README.md +1 −0
@@ -21,6 +21,7 @@
2121 - [bug] JAVA-1193: Refresh token and replica metadata synchronously when schema is altered.
2222 - [bug] JAVA-1120: Skip schema refresh debouncer when checking for agreement as a result of schema change made by client.
2323 - [improvement] JAVA-1242: Fix driver-core dependency in driver-stress
24+- [improvement] JAVA-1235: Move the query to the end of "re-preparing .." log message as a key value.
2425
2526
2627 ### 3.0.2
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −2
@@ -2129,8 +2129,8 @@
21292129 public PreparedStatement addPrepared(PreparedStatement stmt) {
21302130 PreparedStatement previous = preparedQueries.putIfAbsent(stmt.getPreparedId().id, stmt);
21312131 if (previous != null) {
2132- logger.warn("Re-preparing already prepared query {}. Please note that preparing the same query more than once is "
2133- + "generally an anti-pattern and will likely affect performance. Consider preparing the statement only once.", stmt.getQueryString());
2132+ logger.warn("Re-preparing already prepared query is generally an anti-pattern and will likely affect performance. "
2133+ + "Consider preparing the statement only once. Query='{}'", stmt.getQueryString());
21342134
21352135 // The one object in the cache will get GCed once it's not referenced by the client anymore since we use a weak reference.
21362136 // So we need to make sure that the instance we do return to the user is the one that is in the cache.