hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1089727 - in /hbase/trunk: CHANGES.txt src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
Date Thu, 07 Apr 2011 04:06:21 GMT
Author: stack
Date: Thu Apr  7 04:06:21 2011
New Revision: 1089727

URL: http://svn.apache.org/viewvc?rev=1089727&view=rev
Log:
HBASE-3723 Major compact should be done when there is only one storefile and some keyvalue
is outdated

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1089727&r1=1089726&r2=1089727&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Thu Apr  7 04:06:21 2011
@@ -67,6 +67,8 @@ Release 0.91.0 - Unreleased
                be using TreeSet for HRegion (Ted Yu via J-D)
    HBASE-3739  HMaster.getProtocolVersion() should distinguish
                HMasterInterface and HMasterRegionInterface versions
+   HBASE-3723  Major compact should be done when there is only one storefile
+               and some keyvalue is outdated (Zhou Shuaifeng via Stack)
 
   IMPROVEMENTS
    HBASE-3290  Max Compaction Size (Nicolas Spiegelberg via Stack)  

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java?rev=1089727&r1=1089726&r2=1089727&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java Thu Apr  7 04:06:21
2011
@@ -787,6 +787,11 @@ public class Store implements HeapSize {
                 " because one (major) compacted file only and oldestTime " +
                 oldest + "ms is < ttl=" + this.ttl);
           }
+        } else if (this.ttl != HConstants.FOREVER && oldest > this.ttl) {
+          LOG.debug("Major compaction triggered on store " + this.storeNameStr +
+            ", because keyvalues outdated; time since last major compaction " + 
+            (now - lowTimestamp) + "ms");
+          result = true;
         }
       } else {
         if (LOG.isDebugEnabled()) {



Mime
View raw message