From a06ed3e653a0dde8506c62dbfc0853af934b2f0d Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 21 Jan 2011 20:42:11 +0000 Subject: [PATCH] Added logging to help figure failing test up on hudson--TestSplitTransactionOnCluster git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1062017 13f79535-47bb-0310-9956-ffa450edef68 --- .../hbase/regionserver/TestSplitTransactionOnCluster.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java b/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java index 76e0b7acb76..b2edeffc838 100644 --- a/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java +++ b/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java @@ -245,6 +245,8 @@ public class TestSplitTransactionOnCluster { HRegionServer tableRegionServer = cluster.getRegionServer(tableRegionIndex); if (metaRegionServer.getServerName().equals(tableRegionServer.getServerName())) { HRegionServer hrs = getOtherRegionServer(cluster, metaRegionServer); + LOG.info("Moving " + hri.getRegionNameAsString() + " to " + + hrs.getServerName() + "; metaServerIndex=" + metaServerIndex); admin.move(hri.getEncodedNameAsBytes(), Bytes.toBytes(hrs.getServerName())); } // Wait till table region is up on the server that is NOT carrying .META.. @@ -252,7 +254,7 @@ public class TestSplitTransactionOnCluster { tableRegionIndex = cluster.getServerWith(hri.getRegionName()); if (tableRegionIndex != -1 && tableRegionIndex != metaServerIndex) break; LOG.debug("Waiting on region move off the .META. server; current index " + - tableRegionIndex); + tableRegionIndex + " and metaServerIndex=" + metaServerIndex); Thread.sleep(100); } // Verify for sure table region is not on same server as .META.