hive-issues mailing list archives

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


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:

   @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:

Issue Time Tracking

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

> Use LongAdder instead of AtomicLong
> -----------------------------------
>                 Key: HIVE-23839
>                 URL:
>             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

View raw message