Skip to content

Commit

Permalink
HBASE-23149 RatioBasedCompactionPolicy#shouldPerformMajorCompaction l…
Browse files Browse the repository at this point in the history
…ogic is not correct (#744)

Signed-off-by: Guangxu Cheng <[email protected]>
  • Loading branch information
liuyongvs authored and guangxuCheng committed Oct 24, 2019
1 parent f0999a1 commit 41f6713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public boolean shouldPerformMajorCompaction(final Collection<StoreFile> filesToC
} else {
LOG.debug("Major compaction triggered on store " + regionInfo
+ "; time since last major compaction " + (now - lowTimestamp) + "ms");
result = true;
}
result = true;
}
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public abstract boolean shouldPerformMajorCompaction(final Collection<StoreFile>
* @return When to run next major compaction
*/
public long getNextMajorCompactTime(final Collection<StoreFile> filesToCompact) {
// default = 24hrs
// default = 7days
long ret = comConf.getMajorCompactionPeriod();
if (ret > 0) {
// default = 20% = +/- 4.8 hrs
Expand Down

0 comments on commit 41f6713

Please sign in to comment.