Elffuss BraidHub

kikocis/java-driver public

Merge branch '2.0' into 2.1
Changeset9c3c6de3067c77412296dc69960723c5c28392e4e023bcf905e8a375c9b0fc6c
Authorolim7t <omichallat+github@gmail.com> · 2015-11-09 15:04 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2015-11-09 15:04 +01:00
Parentsd34b31a58ea2, cf0c71ebe87f

Browse the files at this changeset

2 files changed

modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +4 −4
@@ -438,15 +438,15 @@
438438 } catch (ConnectionException e) {
439439 throw defunct(e);
440440 } 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);
443443 throw new ConnectionException(address, "Tried to set the keyspace on busy connection");
444444 } catch (ExecutionException e) {
445445 Throwable cause = e.getCause();
446446 if (cause instanceof OperationTimedOutException) {
447447 // 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);
450450 throw new ConnectionException(address, "Timeout while setting keyspace on connection");
451451 } else {
452452 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 @@
451451 }
452452 logger.debug("Creating new connection on busy pool to {}", host);
453453 newConnection = manager.connectionFactory().open(this);
454- newConnection.setKeyspace(manager.poolsState.keyspace);
455454 }
456455 connections.add(newConnection);
457456