kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 8cda1ec45abb67bf77c9b86c3a231803e8fa34200b6d7d859378a73239df266c |
|---|---|
| Author | Olivier Michallat <olim7t@users.noreply.github.com> · 2015-06-18 10:49 +02:00 |
| Committer | Olivier Michallat <olim7t@users.noreply.github.com> · 2015-06-18 10:49 +02:00 |
| Parents | fd4d807e5ca8, f3143d46f735 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −2
| @@ -1550,7 +1550,7 @@ | ||
| 1550 | 1550 | } catch (ExecutionException e) { |
| 1551 | 1551 | Throwable t = e.getCause(); |
| 1552 | 1552 | // That future is not really supposed to throw unexpected exceptions |
| 1553 | - if (!(t instanceof InterruptedException)) | |
| 1553 | + if (!(t instanceof InterruptedException) && !(t instanceof CancellationException)) | |
| 1554 | 1554 | logger.error("Unexpected error while marking node UP: while this shouldn't happen, this shouldn't be critical", t); |
| 1555 | 1555 | } |
| 1556 | 1556 | |
| @@ -1821,7 +1821,7 @@ | ||
| 1821 | 1821 | } catch (ExecutionException e) { |
| 1822 | 1822 | Throwable t = e.getCause(); |
| 1823 | 1823 | // That future is not really supposed to throw unexpected exceptions |
| 1824 | - if (!(t instanceof InterruptedException)) | |
| 1824 | + if (!(t instanceof InterruptedException) && !(t instanceof CancellationException)) | |
| 1825 | 1825 | logger.error("Unexpected error while adding node: while this shouldn't happen, this shouldn't be critical", t); |
| 1826 | 1826 | } |
| 1827 | 1827 |