[
https://issues.apache.org/jira/browse/HBASE-18624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16173521#comment-16173521
]
Ted Yu commented on HBASE-18624:
--------------------------------
{code}
+ } catch (NotServingRegionException e) {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Trying to clear block cache for " + pair.getFirst() + ":
" +
+ StringUtils.stringifyException(e));
+ }
{code}
Why is exception swallowed ?
{code}
+ private void clearBlockCache(final ServerName sn, final HRegionInfo hri)
throws IOException {
+ HBaseRpcController controller = rpcControllerFactory.newController();
+ AdminService.BlockingInterface admin = this.connection.getAdmin(sn);
{code}
HBaseRpcController is created for every region. Please lift this out of the
loop.
> 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)