hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1202995 - /hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/zookeeper/TestHQuorumPeer.java
Date Thu, 17 Nov 2011 01:47:34 GMT
Author: nspiegelberg
Date: Thu Nov 17 01:47:33 2011
New Revision: 1202995

URL: http://svn.apache.org/viewvc?rev=1202995&view=rev
Log:
Fix TestHQuorumPeer for non-default values of hbase.tmp.dir

Summary: TestHQuorumPeer currently fails if hbase.tmp.dir is different from
/tmp/hbase-<username>. However, for our internal parallel test runner we use a
different temporary HBase directory. This fixes the unit test to use
hbase.tmp.dir.

Reviewed at https://reviews.facebook.net/D297

Test Plan: Run TestHQuorumPeer with customized hbase.tmp.dir in
hbase-default.xml.

Reviewers: liyintang

Reviewed By: liyintang

CC: liyintang

Modified:
    hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/zookeeper/TestHQuorumPeer.java

Modified: hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/zookeeper/TestHQuorumPeer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/zookeeper/TestHQuorumPeer.java?rev=1202995&r1=1202994&r2=1202995&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/zookeeper/TestHQuorumPeer.java
(original)
+++ hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/zookeeper/TestHQuorumPeer.java
Thu Nov 17 01:47:33 2011
@@ -42,7 +42,7 @@ public class TestHQuorumPeer extends HBa
   protected void setUp() throws Exception {
     super.setUp();
     String userName = System.getProperty("user.name");
-    dataDir = new Path("/tmp/hbase-" + userName, "zookeeper");
+    dataDir = new Path(conf.get("hbase.tmp.dir"), "zookeeper");
     if (fs.exists(dataDir)) {
       if (!fs.isDirectory(dataDir)) {
         fail();



Mime
View raw message