hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject git commit: HBASE-11621 Make MiniDFSCluster run faster
Date Thu, 31 Jul 2014 16:45:12 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 be816b18a -> 63d6f22c9


HBASE-11621 Make MiniDFSCluster run faster


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

Branch: refs/heads/branch-1
Commit: 63d6f22c96a272c8bfb4463947bd0164e93d88e4
Parents: be816b1
Author: Ted Yu <tedyu@apache.org>
Authored: Thu Jul 31 16:44:49 2014 +0000
Committer: Ted Yu <tedyu@apache.org>
Committed: Thu Jul 31 16:44:49 2014 +0000

----------------------------------------------------------------------
 .../src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/63d6f22c/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
index fde40ad..53a3b93 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
@@ -103,6 +103,7 @@ import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;
 import org.apache.hadoop.hdfs.DFSClient;
 import org.apache.hadoop.hdfs.DistributedFileSystem;
 import org.apache.hadoop.hdfs.MiniDFSCluster;
+import org.apache.hadoop.hdfs.server.namenode.EditLogFileOutputStream;
 import org.apache.hadoop.mapred.JobConf;
 import org.apache.hadoop.mapred.MiniMRCluster;
 import org.apache.hadoop.mapred.TaskLog;
@@ -511,6 +512,7 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
   public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])
   throws Exception {
     createDirsAndSetProperties();
+    EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);
 
     // Error level to skip some warnings specific to the minicluster. See HBASE-4709
     org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).


Mime
View raw message