Elffuss BraidHub

kikocis/java-driver public

Merge pull request #298 from newkek/JAVA-670

avoid useless reconnection attempts when interrupted (JAVA-670)
Changeset1a137538a0855349629473475058ec7ce18f75aad5a2deb1633e1b5c7424c4f5
AuthorOlivier Michallat <olim7t@users.noreply.github.com> · 2015-03-13 12:34 +01:00
CommitterOlivier Michallat <olim7t@users.noreply.github.com> · 2015-03-13 12:34 +01:00
Parents80d2b6b04b10, f9dd1d779b08

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();