Repository: curator Updated Branches: refs/heads/CURATOR-3.0 a69f3a435 -> 2d487836f
Ignore any shutdown errors Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/c4f3a505 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/c4f3a505 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/c4f3a505 Branch: refs/heads/CURATOR-3.0 Commit: c4f3a505b70f02bf209613307b3bdefaff7bf4fe Parents: b161867 Author: randgalt <randg...@apache.org> Authored: Tue Sep 8 12:41:46 2015 -0500 Committer: randgalt <randg...@apache.org> Committed: Tue Sep 8 12:41:46 2015 -0500 ---------------------------------------------------------------------- .../org/apache/curator/test/TestingZooKeeperMain.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/c4f3a505/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java ---------------------------------------------------------------------- diff --git a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java index bb70da5..a13ce9c 100644 --- a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java +++ b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java @@ -119,7 +119,14 @@ public class TestingZooKeeperMain extends ZooKeeperServerMain implements ZooKeep @Override public void close() throws IOException { - shutdown(); + try + { + shutdown(); + } + catch ( Throwable e ) + { + e.printStackTrace(); // just ignore - this class is only for testing + } try { @@ -138,7 +145,7 @@ public class TestingZooKeeperMain extends ZooKeeperServerMain implements ZooKeep } } } - catch ( Exception e ) + catch ( Throwable e ) { e.printStackTrace(); // just ignore - this class is only for testing }