You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2009/05/20 04:36:02 UTC

svn commit: r776525 - /hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HConstants.java

Author: stack
Date: Wed May 20 02:36:01 2009
New Revision: 776525

URL: http://svn.apache.org/viewvc?rev=776525&view=rev
Log:
HBASE-1430 Read the logs in batches during log splitting to avoid OOME

Modified:
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HConstants.java

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HConstants.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HConstants.java?rev=776525&r1=776524&r2=776525&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HConstants.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HConstants.java Wed May 20 02:36:01 2009
@@ -137,6 +137,10 @@
    *  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.