[
https://issues.apache.org/jira/browse/HBASE-14152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14638594#comment-14638594
]
Jingcheng Du commented on HBASE-14152:
--------------------------------------
Right, this is not atomic, and cannot avoid the race condition.
I think metrics is a rough statistics, few race condition is allowed?
HBase has some similar usages in HStore where the volatile variables are used.
I think it made a tradeoff between the accuracy and speed?
> Fix the warnings in Checkstyle and FindBugs brought in by merging hbase-11339
> -----------------------------------------------------------------------------
>
> Key: HBASE-14152
> URL: https://issues.apache.org/jira/browse/HBASE-14152
> Project: HBase
> Issue Type: Improvement
> Components: mob
> Affects Versions: 2.0.0
> Reporter: Jingcheng Du
> Assignee: Jingcheng Du
> Fix For: 2.0.0
>
> Attachments: HBASE-14152-V2.patch, HBASE-14152.patch
>
>
> There are some new warnings in Checkstyle and FindBugs brought in by merging
> the feature branch hbase-11339 to trunk.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)