kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | d037a452cb9697bb5f697421c01b4be07fd97cb091ec2dd503f18f549e3a7595 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-08-14 19:14 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-08-14 19:38 +02:00 |
| Parents | a3447a72a046 |
2 files changed
modified driver-core/CHANGELOG.rst +1 −0
| @@ -9,6 +9,7 @@ | ||
| 9 | 9 | batches (JAVA-393) |
| 10 | 10 | - [bug] Ensure pool is properly closed in onDown (JAVA-417) |
| 11 | 11 | - [bug] Fix tokenMap initialization at startup (JAVA-415) |
| 12 | +- [bug] Avoid deadlock on close (JAVA-418) | |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 | 2.0.4: |
modified driver-core/src/main/java/com/datastax/driver/core/SessionManager.java +1 −1
| @@ -229,7 +229,7 @@ | ||
| 229 | 229 | // want to avoid |
| 230 | 230 | private boolean replacePool(Host host, HostDistance distance, HostConnectionPool condition) throws ConnectionException, UnsupportedProtocolVersionException { |
| 231 | 231 | if (isClosing) |
| 232 | - return false; | |
| 232 | + return true; | |
| 233 | 233 | |
| 234 | 234 | Lock l = poolCreationLocks.get(host); |
| 235 | 235 | l.lock(); |