From aa6d6c7a9ee9d996ee984b13e288e5eb30102f7c Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Sat, 17 Sep 2011 20:52:33 +0000 Subject: [PATCH] HBASE-4400 fixed up the anonymous Abortable in createAndForceNodeToOpenedState() git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1172068 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/hadoop/hbase/HBaseTestingUtility.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java index 063621b56a8..5edb3819276 100644 --- a/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java +++ b/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java @@ -1578,10 +1578,16 @@ public class HBaseTestingUtility { IOException, KeeperException, NodeExistsException { ZooKeeperWatcher zkw = new ZooKeeperWatcher(TEST_UTIL.getConfiguration(), "unittest", new Abortable() { + boolean aborted = false; @Override public void abort(String why, Throwable e) { + aborted = true; throw new RuntimeException("Fatal ZK error, why=" + why, e); } + @Override + public boolean isAborted() { + return aborted; + } }); ZKAssign.createNodeOffline(zkw, region.getRegionInfo(), regionServer