kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 9c3c6de3067c77412296dc69960723c5c28392e4e023bcf905e8a375c9b0fc6c |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-11-09 15:04 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-11-09 15:04 +01:00 |
| Parents | d34b31a58ea2, cf0c71ebe87f |
2 files changed
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +4 −4
| @@ -438,15 +438,15 @@ | ||
| 438 | 438 | } catch (ConnectionException e) { |
| 439 | 439 | throw defunct(e); |
| 440 | 440 | } catch (BusyConnectionException e) { |
| 441 | - logger.warn("Tried to set the keyspace on busy connection to {}. " | |
| 442 | - + "This should not happen but is not critical (it will be retried)", address); | |
| 441 | + logger.warn("Tried to set the keyspace on busy {}. " | |
| 442 | + + "This should not happen but is not critical (it will be retried)", this); | |
| 443 | 443 | throw new ConnectionException(address, "Tried to set the keyspace on busy connection"); |
| 444 | 444 | } catch (ExecutionException e) { |
| 445 | 445 | Throwable cause = e.getCause(); |
| 446 | 446 | if (cause instanceof OperationTimedOutException) { |
| 447 | 447 | // Rethrow so that the caller doesn't try to use the connection, but do not defunct as we don't want to mark down |
| 448 | - logger.warn("Timeout while setting keyspace on connection to {}. " | |
| 449 | - + "This should not happen but is not critical (it will be retried)", address); | |
| 448 | + logger.warn("Timeout while setting keyspace on {}. " | |
| 449 | + + "This should not happen but is not critical (it will be retried)", this); | |
| 450 | 450 | throw new ConnectionException(address, "Timeout while setting keyspace on connection"); |
| 451 | 451 | } else { |
| 452 | 452 | throw defunct(new ConnectionException(address, "Error while setting keyspace", cause)); |
modified driver-core/src/main/java/com/datastax/driver/core/HostConnectionPool.java +0 −1
| @@ -451,7 +451,6 @@ | ||
| 451 | 451 | } |
| 452 | 452 | logger.debug("Creating new connection on busy pool to {}", host); |
| 453 | 453 | newConnection = manager.connectionFactory().open(this); |
| 454 | - newConnection.setKeyspace(manager.poolsState.keyspace); | |
| 455 | 454 | } |
| 456 | 455 | connections.add(newConnection); |
| 457 | 456 |