You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Chia-Ping Tsai (JIRA)" <ji...@apache.org> on 2017/09/08 05:53:01 UTC
[jira] [Commented] (HBASE-18772) [JDK8] Replace AtomicLong with
LongAdder
[ https://issues.apache.org/jira/browse/HBASE-18772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158159#comment-16158159 ]
Chia-Ping Tsai commented on HBASE-18772:
----------------------------------------
[~Apache9] You had done a great job in HBASE-7615 that replaced most of atomic variables with the LongAdder, but some atomic variables in HRegion, such as compactionNumBytesCompacted and compactionNumFilesCompacted, aren't replaced. Any concerns, like what [~anoop.hbase] described, are from HRegion?
> [JDK8] Replace AtomicLong with LongAdder
> -----------------------------------------
>
> Key: HBASE-18772
> URL: https://issues.apache.org/jira/browse/HBASE-18772
> Project: HBase
> Issue Type: Improvement
> Affects Versions: 2.0.0-alpha-2
> Reporter: Yechao Chen
> Assignee: Yechao Chen
> Priority: Trivial
> Fix For: 2.0.0-beta-1
>
>
> RCurrently we use many AtomicLong in HBase Region Code ,such as BucketCache calss realCacheSize,heapSize,blockNumber,accessCount and HRegion calss compactionNumBytesCompacted etc .
> In JDK8 LongAdder is faster than AtomicLong ,should use this replace AtomicLong
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)