yuqi created HBASE-25020:
----------------------------
Summary: Fix major compaction interval check logic bug when value
of `hbase.hregion.majorcompaction` is below 0
Key: HBASE-25020
URL: https://issues.apache.org/jira/browse/HBASE-25020
Project: HBase
Issue Type: Bug
Reporter: yuqi
Assignee: yuqi
In `RatioBasedCompactionPolicy#shouldPerformMajorCompaction`
{code:java}
// mcTime can be less than 0
long mcTime = getNextMajorCompactTime(filesToCompact);
//this check logic can't handle the condtion that mcTime is less than 0
if (filesToCompact == null || filesToCompact.isEmpty() || mcTime == 0) {
return result;
}
....
// As long as lowTimestamp > 0, the following logic is true
if (lowTimestamp > 0L && lowTimestamp < (now - mcTime))
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)