Elffuss BraidHub

kikocis/java-driver public

avoid useless reconnection attempts when interrupted (JAVA-670)
Changesetf9dd1d779b08e69447d10f8268d6d892d427c82d5de89165e0e53a3e55ec1f22
AuthorKevin Gallardo <kevingallardo@Kevins-MacBook-Pro.local> · 2015-03-05 19:30 UTC
CommitterKevin Gallardo <kevin.gallardo@datastax.com> · 2015-03-13 10:59 UTC
Parentsa0bc0c0ae918

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/AbstractReconnectionHandler.java +0 −2
@@ -141,9 +141,7 @@
141141 currentAttempt.compareAndSet(handlerFuture, null);
142142 }
143143 } catch (InterruptedException e) {
144- // If interrupted, skip this attempt but still skip scheduling reconnections
145144 Thread.currentThread().interrupt();
146- reschedule(schedule.nextDelayMs());
147145 } catch (UnsupportedProtocolVersionException e) {
148146 logger.error(e.getMessage());
149147 long nextDelay = schedule.nextDelayMs();