kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 6ad0d047bddb1f39382481f10611d4e991332094e5ec99f5fa6db1baaa05f849 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-12-07 17:24 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-12-07 17:29 +01:00 |
| Parents | c8a66951a399 |
2 files changed
modified changelog/README.md +0 −2
| @@ -3,8 +3,6 @@ | ||
| 3 | 3 | ### 2.0.13 (in progress) |
| 4 | 4 | |
| 5 | 5 | - [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 | - | |
| 8 | 6 | |
| 9 | 7 | ### 2.0.12 |
| 10 | 8 |
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +1 −1
| @@ -1049,7 +1049,7 @@ | ||
| 1049 | 1049 | public void operationComplete(ChannelFuture future) throws Exception { |
| 1050 | 1050 | // If we've closed the channel client side then we don't really want to defunct the connection, but |
| 1051 | 1051 | // if there is remaining thread waiting on us, we still want to wake them up |
| 1052 | - if (isClosed()) { | |
| 1052 | + if (!isInitialized || isClosed()) { | |
| 1053 | 1053 | dispatcher.errorOutAllHandler(new TransportException(address, "Channel has been closed")); |
| 1054 | 1054 | // we still want to force so that the future completes |
| 1055 | 1055 | Connection.this.closeAsync().force(); |