kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 255fe1fab3d8c445b49bdd3289262b079f5d60f6289987f6c90e2c24553022c2 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-06-18 10:50 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-06-18 10:50 +02:00 |
| Parents | 2de341b4b9f7, 8cda1ec45abb |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −2
| @@ -1587,7 +1587,7 @@ | ||
| 1587 | 1587 | } catch (ExecutionException e) { |
| 1588 | 1588 | Throwable t = e.getCause(); |
| 1589 | 1589 | // That future is not really supposed to throw unexpected exceptions |
| 1590 | - if (!(t instanceof InterruptedException)) | |
| 1590 | + if (!(t instanceof InterruptedException) && !(t instanceof CancellationException)) | |
| 1591 | 1591 | logger.error("Unexpected error while marking node UP: while this shouldn't happen, this shouldn't be critical", t); |
| 1592 | 1592 | } |
| 1593 | 1593 | |
| @@ -1858,7 +1858,7 @@ | ||
| 1858 | 1858 | } catch (ExecutionException e) { |
| 1859 | 1859 | Throwable t = e.getCause(); |
| 1860 | 1860 | // That future is not really supposed to throw unexpected exceptions |
| 1861 | - if (!(t instanceof InterruptedException)) | |
| 1861 | + if (!(t instanceof InterruptedException) && !(t instanceof CancellationException)) | |
| 1862 | 1862 | logger.error("Unexpected error while adding node: while this shouldn't happen, this shouldn't be critical", t); |
| 1863 | 1863 | } |
| 1864 | 1864 |