kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | bf316cfd6b9ab7951037539d2cb046dfaf9b224adfb2ef2d8198b2086e5460bc |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-04-01 15:35 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-04-01 15:35 +02:00 |
| Parents | cbb199d764d9 |
2 files changed
modified driver-core/CHANGELOG.rst +1 −0
| @@ -33,6 +33,7 @@ | ||
| 33 | 33 | (JAVA-698) |
| 34 | 34 | - [bug] Fix issue when executing a PreparedStatement from another cluster |
| 35 | 35 | (JAVA-641) |
| 36 | +- [improvement] Log keyspace xxx does not exist at WARN level (JAVA-534) | |
| 36 | 37 | |
| 37 | 38 | Merged from 2.0.9_fixes branch: |
| 38 | 39 |
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +3 −1
| @@ -347,7 +347,9 @@ | ||
| 347 | 347 | // It can happen however that the node we're connecting to |
| 348 | 348 | // is not up on the schema yet. In that case, defuncting |
| 349 | 349 | // the connection is not a bad choice. |
| 350 | - defunct(new ConnectionException(address, String.format("Problem while setting keyspace, got %s as response", response))); | |
| 350 | + String message = String.format("Problem while setting keyspace, got %s as response", response); | |
| 351 | + logger.warn("{} {}", this, message); | |
| 352 | + defunct(new ConnectionException(address, message)); | |
| 351 | 353 | break; |
| 352 | 354 | } |
| 353 | 355 | } catch (ConnectionException e) { |