Skip to content

Commit 2f09ff9

Browse files
committed
Merge branch '2.0' into 2.1
2 parents bc4beab + d19159d commit 2f09ff9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • driver-core/src/main/java/com/datastax/driver/core

driver-core/src/main/java/com/datastax/driver/core/Cluster.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ private void onUp(final Host host, Connection reusedConnection) throws Interrupt
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 @@ private void onAdd(final Host host, Connection reusedConnection) throws Interrup
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

0 commit comments

Comments
 (0)