Elffuss BraidHub

kikocis/java-driver public

Merge branch '2.0' into 2.1
Changeset255fe1fab3d8c445b49bdd3289262b079f5d60f6289987f6c90e2c24553022c2
Authorolim7t <omichallat+github@gmail.com> · 2015-06-18 10:50 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2015-06-18 10:50 +02:00
Parents2de341b4b9f7, 8cda1ec45abb

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −2
@@ -1587,7 +1587,7 @@
15871587 } catch (ExecutionException e) {
15881588 Throwable t = e.getCause();
15891589 // That future is not really supposed to throw unexpected exceptions
1590- if (!(t instanceof InterruptedException))
1590+ if (!(t instanceof InterruptedException) && !(t instanceof CancellationException))
15911591 logger.error("Unexpected error while marking node UP: while this shouldn't happen, this shouldn't be critical", t);
15921592 }
15931593
@@ -1858,7 +1858,7 @@
18581858 } catch (ExecutionException e) {
18591859 Throwable t = e.getCause();
18601860 // That future is not really supposed to throw unexpected exceptions
1861- if (!(t instanceof InterruptedException))
1861+ if (!(t instanceof InterruptedException) && !(t instanceof CancellationException))
18621862 logger.error("Unexpected error while adding node: while this shouldn't happen, this shouldn't be critical", t);
18631863 }
18641864