HBASE-8349 TestLogRolling#testLogRollOnDatanodeDeath hangs under hadoop2 profile

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1468564 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Hsieh 2013-04-16 19:09:02 +00:00
parent a00785136b
commit c2bb416c71
1 changed files with 6 additions and 2 deletions

View File

@ -91,9 +91,13 @@ public class TestLogRolling {
}
// Need to override this setup so we can edit the config before it gets sent
// to the HDFS & HBase cluster startup.
@BeforeClass
// to the HDFS & HBase cluster startup.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
// TODO: testLogRollOnDatanodeDeath fails if short circuit reads are on under the hadoop2
// profile. See HBASE-9337 for related issues.
System.setProperty("hbase.tests.use.shortcircuit.reads", "false");
/**** configuration for testLogRolling ****/
// Force a region split after every 768KB
TEST_UTIL.getConfiguration().setLong(HConstants.HREGION_MAX_FILESIZE, 768L * 1024L);