hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject hbase git commit: HBASE-17813 backport HBASE-16983 to branch-1.3
Date Tue, 21 Mar 2017 13:22:51 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 a60792425 -> ab335bf9d


HBASE-17813 backport HBASE-16983 to branch-1.3

This fixes the "Unable to create region directory" issue in TestMultiTableSnapshotInputFormat


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

Branch: refs/heads/branch-1.3
Commit: ab335bf9d3d82100a875c796eea8e9532b9d2d7b
Parents: a607924
Author: Yu Li <liyu@apache.org>
Authored: Tue Mar 21 21:18:32 2017 +0800
Committer: Yu Li <liyu@apache.org>
Committed: Tue Mar 21 21:18:32 2017 +0800

----------------------------------------------------------------------
 .../hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java | 3 +--
 .../org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java   | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/ab335bf9/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java
index 93bb820..1d55957 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java
@@ -63,8 +63,7 @@ public class TestMultiTableSnapshotInputFormat extends MultiTableInputFormatTest
 
   @Before
   public void setUp() throws Exception {
-    this.restoreDir = new Path("/tmp");
-
+    this.restoreDir = TEST_UTIL.getRandomDir();
   }
 
   @Override

http://git-wip-us.apache.org/repos/asf/hbase/blob/ab335bf9/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java
index 5aa96c1..c5200fb 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java
@@ -66,7 +66,7 @@ public class TestStoreFileInfo {
   @Test
   public void testEqualsWithLink() throws IOException {
     Path origin = new Path("/origin");
-    Path tmp = new Path("/tmp");
+    Path tmp = TEST_UTIL.getDataTestDir();
     Path archive = new Path("/archive");
     HFileLink link1 = new HFileLink(new Path(origin, "f1"), new Path(tmp, "f1"),
       new Path(archive, "f1"));


Mime
View raw message