From 0ef4a1088224b6fa3a2c85ef1d4efba6b7b48673 Mon Sep 17 00:00:00 2001 From: Enis Soztutar Date: Tue, 19 May 2015 19:03:12 -0700 Subject: [PATCH] HBASE-13717 TestBoundedRegionGroupingProvider#setMembershipDedups need to set HDFS diretory for WAL (Stephen Yuan Jiang) --- .../hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java index 1c7813bff63..f4d38a0376e 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java @@ -38,6 +38,7 @@ import org.apache.hadoop.hbase.HBaseTestingUtility; import org.apache.hadoop.hbase.testclassification.LargeTests; import org.apache.hadoop.hbase.testclassification.RegionServerTests; import org.apache.hadoop.hbase.util.Bytes; +import org.apache.hadoop.hbase.util.FSUtils; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; @@ -159,6 +160,9 @@ public class TestBoundedRegionGroupingProvider { WALFactory wals = null; try { conf.setInt(NUM_REGION_GROUPS, temp*4); + // Set HDFS root directory for storing WAL + FSUtils.setRootDir(conf, TEST_UTIL.getDataTestDirOnTestFS()); + wals = new WALFactory(conf, null, currentTest.getMethodName()); final Set seen = new HashSet(temp*4); final Random random = new Random();