HADOOP-2621 Memcache flush flushing every 60 secs with out

considering the max memcache size


git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@613010 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-01-17 23:38:09 +00:00
parent 40b4c04da8
commit 40ed226cf1
3 changed files with 7 additions and 3 deletions

View File

@ -138,6 +138,8 @@ Trunk (unreleased changes)
same cause data loss (Bryan Duxbury via Stack)
HADOOP-2629 Shell digests garbage without complaint
HADOOP-2619 Compaction errors after a region splits
HADOOP-2621 Memcache flush flushing every 60 secs with out considering
the max memcache size
IMPROVEMENTS
HADOOP-2401 Add convenience put method that takes writable

View File

@ -145,10 +145,12 @@
</property>
<property>
<name>hbase.regionserver.optionalcacheflushinterval</name>
<value>60000</value>
<value>1800000</value>
<description>
Amount of time to wait since the last time a region was flushed before
invoking an optional cache flush. Default 60,000.
invoking an optional cache flush (An optional cache flush is a
flush even though memcache is not at the memcache.flush.size).
Default: 30 minutes (in miliseconds)
</description>
</property>
<property>

View File

@ -458,7 +458,7 @@ public class HRegionServer implements HConstants, HRegionInterface, Runnable {
public Flusher() {
super();
this.optionalFlushPeriod = conf.getLong(
"hbase.regionserver.optionalcacheflushinterval", 60L * 1000L);
"hbase.regionserver.optionalcacheflushinterval", 30 * 60 * 1000L);
}