You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by jx...@apache.org on 2018/07/14 00:14:37 UTC

[7/8] helix git commit: Fix deleteCluster in test code.

Fix deleteCluster in test code.


Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/cc9956be
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/cc9956be
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/cc9956be

Branch: refs/heads/master
Commit: cc9956beab3cd7064db981abdf97286dd6fe13e1
Parents: 4609d94
Author: Lei Xia <lx...@linkedin.com>
Authored: Mon Jun 18 08:25:09 2018 -0700
Committer: Lei Xia <lx...@linkedin.com>
Committed: Fri Jul 13 15:55:50 2018 -0700

----------------------------------------------------------------------
 .../src/test/java/org/apache/helix/common/ZkTestBase.java     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/cc9956be/helix-core/src/test/java/org/apache/helix/common/ZkTestBase.java
----------------------------------------------------------------------
diff --git a/helix-core/src/test/java/org/apache/helix/common/ZkTestBase.java b/helix-core/src/test/java/org/apache/helix/common/ZkTestBase.java
index e873cdb..41c05c8 100644
--- a/helix-core/src/test/java/org/apache/helix/common/ZkTestBase.java
+++ b/helix-core/src/test/java/org/apache/helix/common/ZkTestBase.java
@@ -603,7 +603,12 @@ public class ZkTestBase {
   protected void deleteCluster(String clusterName) {
     String namespace = "/" + clusterName;
     if (_gZkClient.exists(namespace)) {
-      _gSetupTool.deleteCluster(namespace);
+      try {
+        _gSetupTool.deleteCluster(clusterName);
+      } catch (Exception ex) {
+        System.err.println("Failed to delete cluster " + clusterName);
+        ex.printStackTrace();
+      }
     }
   }