kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 5c562f23d881ba65abe7400048324f2d6276ffd6399ac58d884448f1f5db171b |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-12-07 17:31 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-12-07 17:31 +01:00 |
| Parents | 855e5ab85b22, 6ad0d047bddb |
2 files changed
modified changelog/README.md +0 −3
| @@ -12,7 +12,6 @@ | ||
| 12 | 12 | Merged from 2.0 branch: |
| 13 | 13 | |
| 14 | 14 | - [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. | |
| 16 | 15 | |
| 17 | 16 | |
| 18 | 17 | ### 2.1.9 |
| @@ -353,8 +352,6 @@ | ||
| 353 | 352 | ### 2.0.13 (in progress) |
| 354 | 353 | |
| 355 | 354 | - [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 | - | |
| 358 | 355 | |
| 359 | 356 | ### 2.0.12 |
| 360 | 357 |
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +1 −1
| @@ -1063,7 +1063,7 @@ | ||
| 1063 | 1063 | public void operationComplete(ChannelFuture future) throws Exception { |
| 1064 | 1064 | // If we've closed the channel client side then we don't really want to defunct the connection, but |
| 1065 | 1065 | // if there is remaining thread waiting on us, we still want to wake them up |
| 1066 | - if (isClosed()) { | |
| 1066 | + if (!isInitialized || isClosed()) { | |
| 1067 | 1067 | dispatcher.errorOutAllHandler(new TransportException(address, "Channel has been closed")); |
| 1068 | 1068 | // we still want to force so that the future completes |
| 1069 | 1069 | Connection.this.closeAsync().force(); |