kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | e967f87184b2b7d9115a187ba258631f9c61d43471df2dc7d693668a95c56368 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2016-07-13 13:04 -07:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-07-13 13:06 -07:00 |
| Parents | 25e95e52bb76, 16bea4c301ca |
2 files changed
modified changelog/README.md +1 −0
| @@ -21,6 +21,7 @@ | ||
| 21 | 21 | - [bug] JAVA-1193: Refresh token and replica metadata synchronously when schema is altered. |
| 22 | 22 | - [bug] JAVA-1120: Skip schema refresh debouncer when checking for agreement as a result of schema change made by client. |
| 23 | 23 | - [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. | |
| 24 | 25 | |
| 25 | 26 | |
| 26 | 27 | ### 3.0.2 |
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −2
| @@ -2129,8 +2129,8 @@ | ||
| 2129 | 2129 | public PreparedStatement addPrepared(PreparedStatement stmt) { |
| 2130 | 2130 | PreparedStatement previous = preparedQueries.putIfAbsent(stmt.getPreparedId().id, stmt); |
| 2131 | 2131 | 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()); | |
| 2134 | 2134 | |
| 2135 | 2135 | // The one object in the cache will get GCed once it's not referenced by the client anymore since we use a weak reference. |
| 2136 | 2136 | // So we need to make sure that the instance we do return to the user is the one that is in the cache. |