[
https://issues.apache.org/jira/browse/HBASE-18624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16173684#comment-16173684
]
Ted Yu commented on HBASE-18624:
--------------------------------
{code}
+ public void clearBlockCache(final TableName tableName) throws IOException {
{code}
How about changing the return type to integer which represents the number of
regions who cache is not cleared ?
This would give caller some idea how effective the call is.
> Added support for clearing BlockCache based on table name
> ---------------------------------------------------------
>
> Key: HBASE-18624
> URL: https://issues.apache.org/jira/browse/HBASE-18624
> Project: HBase
> Issue Type: Sub-task
> Affects Versions: 2.0.0, 1.3.0
> Reporter: Ajay Jadhav
> Assignee: Ajay Jadhav
> Fix For: 2.0.0, 1.4.0
>
> Attachments: HBASE-18624.branch-1.001.patch,
> HBASE-18624.master.001.patch, HBASE-18624.master.002.patch
>
>
> Bulk loading the primary HBase cluster triggers a lot of compactions
> resulting in archival/ creation
> of multiple HFiles. This process will cause a lot of items to become stale in
> replica’s BlockCache.
> This patch will help users to clear the block cache for a given table by
> either using shell or API.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)