HBASE-1430 Read the logs in batches during log splitting to avoid OOME

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@776525 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-05-20 02:36:01 +00:00
parent b812635201
commit 47a59d15aa
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,10 @@ public interface HConstants {
* to rewrite the logs. More means faster but bigger mem consumption */
static final int DEFAULT_NUMBER_LOG_WRITER_THREAD = 10;
/** Default number of logs to read concurrently
* when log splitting. More means faster but bigger mem consumption */
static final int DEFAULT_NUMBER_CONCURRENT_LOG_READS = 10;
// Always store the location of the root table's HRegion.
// This HRegion is never split.