Skip to content

Commit 192bd21

Browse files
tolbertamolim7t
authored andcommitted
JAVA-995: Defunct connection even if initializing.
1 parent 2cad56f commit 192bd21

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

changelog/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
### 2.0.13 (in progress)
44

55
- [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing.
6+
- [bug] JAVA-995: Defunct connection even if initializing.
7+
68

79
### 2.0.12
810

driver-core/src/main/java/com/datastax/driver/core/Connection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ private class ChannelCloseListener implements ChannelFutureListener {
10491049
public void operationComplete(ChannelFuture future) throws Exception {
10501050
// If we've closed the channel client side then we don't really want to defunct the connection, but
10511051
// if there is remaining thread waiting on us, we still want to wake them up
1052-
if (!isInitialized || isClosed()) {
1052+
if (isClosed()) {
10531053
dispatcher.errorOutAllHandler(new TransportException(address, "Channel has been closed"));
10541054
// we still want to force so that the future completes
10551055
Connection.this.closeAsync().force();

0 commit comments

Comments
 (0)