kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | f3143d46f7350abef4f0fdb3da01409b8c96aa3d573c96513f89bfae63db72a6 |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-04-28 14:40 +02:00 |
| Committer | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-06-11 19:18 +02:00 |
| Parents | c98c3588aecb |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −2
| @@ -1518,7 +1518,7 @@ | ||
| 1518 | 1518 | } catch (ExecutionException e) { |
| 1519 | 1519 | Throwable t = e.getCause(); |
| 1520 | 1520 | // That future is not really supposed to throw unexpected exceptions |
| 1521 | - if (!(t instanceof InterruptedException)) | |
| 1521 | + if (!(t instanceof InterruptedException) && !(t instanceof CancellationException)) | |
| 1522 | 1522 | logger.error("Unexpected error while marking node UP: while this shouldn't happen, this shouldn't be critical", t); |
| 1523 | 1523 | } |
| 1524 | 1524 | |
| @@ -1789,7 +1789,7 @@ | ||
| 1789 | 1789 | } catch (ExecutionException e) { |
| 1790 | 1790 | Throwable t = e.getCause(); |
| 1791 | 1791 | // That future is not really supposed to throw unexpected exceptions |
| 1792 | - if (!(t instanceof InterruptedException)) | |
| 1792 | + if (!(t instanceof InterruptedException) && !(t instanceof CancellationException)) | |
| 1793 | 1793 | logger.error("Unexpected error while adding node: while this shouldn't happen, this shouldn't be critical", t); |
| 1794 | 1794 | } |
| 1795 | 1795 |