hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject hbase git commit: HBASE-13717 TestBoundedRegionGroupingProvider#setMembershipDedups need to set HDFS diretory for WAL (Stephen Yuan Jiang)
Date Wed, 20 May 2015 02:22:41 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 816856eb1 -> 2a1fab020


HBASE-13717 TestBoundedRegionGroupingProvider#setMembershipDedups need to set HDFS diretory
for WAL (Stephen Yuan Jiang)


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

Branch: refs/heads/branch-1
Commit: 2a1fab0200dabd5bb5dab7e3dfb6d71afca39417
Parents: 816856e
Author: Enis Soztutar <enis@apache.org>
Authored: Tue May 19 19:03:12 2015 -0700
Committer: Enis Soztutar <enis@apache.org>
Committed: Tue May 19 19:15:05 2015 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java      | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2a1fab02/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java
----------------------------------------------------------------------
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 4e3608c..c54e794 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
@@ -37,6 +37,7 @@ import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.hadoop.hbase.testclassification.LargeTests;
 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;
@@ -158,6 +159,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<WAL> seen = new HashSet<WAL>(temp*4);
       final Random random = new Random();


Mime
View raw message