You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by jm...@apache.org on 2013/05/01 23:53:50 UTC
svn commit: r1478203 -
/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
Author: jmhsieh
Date: Wed May 1 21:53:50 2013
New Revision: 1478203
URL: http://svn.apache.org/r1478203
Log:
HBASE-8469 [hadoop2] Several tests break because of HDFS-4305
Modified:
hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java?rev=1478203&r1=1478202&r2=1478203&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java (original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java Wed May 1 21:53:50 2013
@@ -217,6 +217,10 @@ public class HBaseTestingUtility extends
// a hbase checksum verification failure will cause unit tests to fail
ChecksumUtil.generateExceptionForChecksumFailureForTest(true);
+
+ // hadoop-2.0.5+'s HDFS-4305 by default enforces a min blocks size of 1024*1024. Many unit
+ // tests that use the hlog use smaller blocks. Setting this config to 0 to have tets pass
+ conf.setInt("dfs.namenode.fs-limits.min-block-size", 0);
}
/**