hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (HIVE-23839) Use LongAdder instead of AtomicLong
Date Wed, 15 Jul 2020 01:41:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-23839?focusedWorklogId=459053&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-459053
]

ASF GitHub Bot logged work on HIVE-23839:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Jul/20 01:40
            Start Date: 15/Jul/20 01:40
    Worklog Time Spent: 10m 
      Work Description: dddddai edited a comment on pull request #1246:
URL: https://github.com/apache/hive/pull/1246#issuecomment-657601071


   @belugabehr Thank you for pointing that out.
    If we need to use methods like `compareAndSet(a,b)` and `incrementAndGet()` (the return
value is not ignored), then AtomicLong would be preferable.
   These cases just update a sum for collecting statistics.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 459053)
    Time Spent: 1h  (was: 50m)

> Use LongAdder instead of AtomicLong
> -----------------------------------
>
>                 Key: HIVE-23839
>                 URL: https://issues.apache.org/jira/browse/HIVE-23839
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Dai Wenqing
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> LongAdder performs better than AtomicLong in high concurrent environment.



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

Mime
View raw message