From be816b18a44807bfc5f11a3b3f5792da1f8544eb Mon Sep 17 00:00:00 2001 From: Jimmy Xiang Date: Wed, 30 Jul 2014 15:41:31 -0700 Subject: [PATCH] HBASE-11615 TestZKLessAMOnCluster.testForceAssignWhileClosing failed on Jenkins --- .../hadoop/hbase/master/TestAssignmentManagerOnCluster.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerOnCluster.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerOnCluster.java index 32317a0912f..f77fff5b682 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerOnCluster.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerOnCluster.java @@ -388,6 +388,8 @@ public class TestAssignmentManagerOnCluster { AssignmentManager am = master.getAssignmentManager(); assertTrue(am.waitForAssignment(hri)); + ServerName sn = am.getRegionStates().getRegionServerOfRegion(hri); + TEST_UTIL.assertRegionOnServer(hri, sn, 6000); MyRegionObserver.preCloseEnabled.set(true); am.unassign(hri); RegionState state = am.getRegionStates().getRegionState(hri);