[
https://issues.apache.org/jira/browse/HBASE-21140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603847#comment-16603847
]
Duo Zhang commented on HBASE-21140:
-----------------------------------
Please do not include [[email protected]]'s patch for this issue,
HBASE-21150 is for a different issue, where [[email protected]] wants to
avoid the extra registration delay when doing flush.
For fixing the NPE, just use guava's Striped class to lock different tables, or
you can modify IdLock to accept types other than long and use it to lock the
tables, instead of using a big lock.
Thanks.
> Backport 'HBASE-21136 NPE in MetricsTableSourceImpl.updateFlushTime' to
> branch-1
> --------------------------------------------------------------------------------
>
> Key: HBASE-21140
> URL: https://issues.apache.org/jira/browse/HBASE-21140
> Project: HBase
> Issue Type: Bug
> Components: metrics
> Reporter: Duo Zhang
> Assignee: Xu Cang
> Priority: Major
> Fix For: 1.5.0
>
> Attachments:
> HBASE-21140.diff_against_cf198a65e8d704d28538c4c165a941b9e5bac678.branch-1.001.patch
>
>
> There is no computeIfAbsent method on branch-1 as we still need to support
> JDK7, so the fix will be different with branch-2+.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)