Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/SortedCompactionPolicy.java
public long getNextMajorCompactTime(Collection<HStoreFile> filesToCompact) { { // default = 24hrs long period = comConf.getMajorCompactionPeriod(); ... // default = 20% = +/- 4.8 hrs double jitterPct = comConf.getMajorCompactionJitter(); ... }
If I get it correctly, currently, default major compaction period is 7 days,and jitter is 0.5, so 3.5 days.
We could either remove those comments, or add {@link} to link to the default value definitions.