hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DaeMyung Kang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-7867) setPreallocSize is different with COMMENT in setupTestEnv in MiniZooKeeperCluster.java
Date Sun, 17 Feb 2013 07:55:13 GMT
DaeMyung Kang created HBASE-7867:
------------------------------------

             Summary: setPreallocSize is different with COMMENT in setupTestEnv in MiniZooKeeperCluster.java
                 Key: HBASE-7867
                 URL: https://issues.apache.org/jira/browse/HBASE-7867
             Project: HBase
          Issue Type: Bug
            Reporter: DaeMyung Kang
            Priority: Trivial


setupTestEnv() just sets 100 bytes not 100k bytes

private static void setupTestEnv() {
// / XXX: From o.a.zk.t.ClientBaseprivate static void setupTestEnv() {
// during the tests we run with 100K prealloc in the logs.
// on windows systems prealloc of 64M was seen to take ~15seconds
// resulting in test failure (client timeout on first session).
// set env and directly in order to handle static init/gc issues
  System.setProperty("zookeeper.preAllocSize", "100");
  FileTxnLog.setPreallocSize(100);
}

to reduce too many call padLogFile(), I think 100k is correct.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message