Elffuss BraidHub

kikocis/java-driver public

Avoid deadlock on close (JAVA-418).
Changesetd037a452cb9697bb5f697421c01b4be07fd97cb091ec2dd503f18f549e3a7595
Authorolim7t <omichallat+github@gmail.com> · 2014-08-14 19:14 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2014-08-14 19:38 +02:00
Parentsa3447a72a046

Browse the files at this changeset

2 files changed

modified driver-core/CHANGELOG.rst +1 −0
@@ -9,6 +9,7 @@
99 batches (JAVA-393)
1010 - [bug] Ensure pool is properly closed in onDown (JAVA-417)
1111 - [bug] Fix tokenMap initialization at startup (JAVA-415)
12+- [bug] Avoid deadlock on close (JAVA-418)
1213
1314
1415 2.0.4:
modified driver-core/src/main/java/com/datastax/driver/core/SessionManager.java +1 −1
@@ -229,7 +229,7 @@
229229 // want to avoid
230230 private boolean replacePool(Host host, HostDistance distance, HostConnectionPool condition) throws ConnectionException, UnsupportedProtocolVersionException {
231231 if (isClosing)
232- return false;
232+ return true;
233233
234234 Lock l = poolCreationLocks.get(host);
235235 l.lock();