Elffuss BraidHub

kikocis/java-driver public

Merge branch '2.0' into 2.1
Changeset5c562f23d881ba65abe7400048324f2d6276ffd6399ac58d884448f1f5db171b
Authorolim7t <omichallat+github@gmail.com> · 2015-12-07 17:31 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2015-12-07 17:31 +01:00
Parents855e5ab85b22, 6ad0d047bddb

Browse the files at this changeset

2 files changed

modified changelog/README.md +0 −3
@@ -12,7 +12,6 @@
1212 Merged from 2.0 branch:
1313
1414 - [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing.
15-- [bug] JAVA-995: Defunct connection even if initializing.
1615
1716
1817 ### 2.1.9
@@ -353,8 +352,6 @@
353352 ### 2.0.13 (in progress)
354353
355354 - [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing.
356-- [bug] JAVA-995: Defunct connection even if initializing.
357-
358355
359356 ### 2.0.12
360357
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +1 −1
@@ -1063,7 +1063,7 @@
10631063 public void operationComplete(ChannelFuture future) throws Exception {
10641064 // If we've closed the channel client side then we don't really want to defunct the connection, but
10651065 // if there is remaining thread waiting on us, we still want to wake them up
1066- if (isClosed()) {
1066+ if (!isInitialized || isClosed()) {
10671067 dispatcher.errorOutAllHandler(new TransportException(address, "Channel has been closed"));
10681068 // we still want to force so that the future completes
10691069 Connection.this.closeAsync().force();