Elffuss BraidHub

kikocis/java-driver public

Avoid race between timeout and completion of Connection.Future (JAVA-651).
Changeset32fe6b31edc54c4b14025aab92da6a48e5d0d38d2abe9abfa9949f0d7ec8a1af
Authorolim7t <omichallat+github@gmail.com> · 2015-02-06 23:26 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2015-02-11 12:46 +01:00
Parents99eff8eb2fee

Browse the files at this changeset

2 files changed

modified driver-core/CHANGELOG.rst +1 −0
@@ -4,6 +4,7 @@
44 2.0.9.2:
55 --------
66
7+- [bug] Fix edge cases where a connection was released twice (JAVA-651).
78
89 2.0.9.1:
910 --------
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +1 −2
@@ -841,8 +841,7 @@
841841 public boolean onTimeout(Connection connection, long latency, int retryCount) {
842842 assert connection != null; // We always timeout on a specific connection, so this shouldn't be null
843843 this.address = connection.address;
844- super.setException(new OperationTimedOutException(connection.address));
845- return true;
844+ return super.setException(new OperationTimedOutException(connection.address));
846845 }
847846
848847 public InetSocketAddress getAddress() {