[
https://issues.apache.org/jira/browse/HBASE-30291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18102699#comment-18102699
]
mazhengxuan commented on HBASE-30291:
-------------------------------------
{{I have opened PR https://github.com/apache/hbase/pull/8539 for this issue: }}
{{The patch loads the backup HFile references once in preClean() and reuses
the resulting snapshot for all getDeletableFiles() calls in the same cleaner
cycle. It also fails closed when the reference load fails.}}
> BackupHFileCleaner scans backups system table redundantly for every region,
> causing excessive I/O and archive buildup
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-30291
> URL: https://issues.apache.org/jira/browse/HBASE-30291
> Project: HBase
> Issue Type: Bug
> Components: backup&restore
> Reporter: Hernan Romer
> Priority: Major
> Labels: pull-request-available
>
> The BackupHFileCleaner scans the backups system table once per call to
> getDeletableFiles, which is invoked separately for every region in the
> cluster. On clusters with many regions (~40k), this results in tens of
> thousands of redundant full scans of the same table in a single cleaner
> cycle. This causes the cleaner to take so long that it misses its scheduled
> start time and runs continuously, generating sustained high read request
> volume against the host holding the system tables.
>
> Because the cleaner can't keep up, archived HFiles accumulate on disk,
> leading to unexpected spikes in disk utilization (40% increase observed in
> one case). The problem is exacerbated on clusters that do frequent bulk
> loads, since compactions triggered by those bulk loads produce a large volume
> of archived HFiles that the cleaner needs to process.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)