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

Elliott Clark commented on HBASE-12839:
---------------------------------------

Don't you need to re-assign stats if the put if absent returns something 
different?

> Remove synchronization in ServerStatisticsTracker
> -------------------------------------------------
>
>                 Key: HBASE-12839
>                 URL: https://issues.apache.org/jira/browse/HBASE-12839
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: HBASE-12839.patch
>
>
> Remove synchronization in ServerStatisticTracker. We can use putIfAbsent 
> instead of a synchronized block to add ServerStatistic objects to the 
> concurrent statistics hashmap. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to