You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2021/05/17 10:07:00 UTC

[jira] [Commented] (HDFS-15975) Use LongAdder instead of AtomicLong

    [ https://issues.apache.org/jira/browse/HDFS-15975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17346042#comment-17346042 ] 

Wei-Chiu Chuang commented on HDFS-15975:
----------------------------------------

Fortunately HBase accesses the hedged read metrics through the public API, not the public member variables, so this is fine for HBase.
Not sure about other applications.

> Use LongAdder instead of AtomicLong
> -----------------------------------
>
>                 Key: HDFS-15975
>                 URL: https://issues.apache.org/jira/browse/HDFS-15975
>             Project: Hadoop HDFS
>          Issue Type: Wish
>            Reporter: tomscut
>            Assignee: tomscut
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.3.1, 3.4.0
>
>          Time Spent: 6h 10m
>  Remaining Estimate: 0h
>
> When counting some indicators, we can use LongAdder instead of AtomicLong to improve performance. The long value is not an atomic snapshot in LongAdder, but I think we can tolerate that.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org