hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duo Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16648) [JDK8] Use computeIfAbsent instead of get and putIfAbsent
Date Sun, 18 Sep 2016 13:54:21 GMT

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

Duo Zhang commented on HBASE-16648:
-----------------------------------

The behavior of reportServerError method in ConnectionImplementation.ServerErrorTracker is
a little strange. It adds a ServerError to the errorsByServer map if not exists but does not
increase the error count. So simply change it to computeIfAbsent will cause TestHCM to fail.
Now I add a simple hack to keep the behavior. We can fix it in another issue if we consider
this is a bug.

Thanks.

> [JDK8] Use computeIfAbsent instead of get and putIfAbsent
> ---------------------------------------------------------
>
>                 Key: HBASE-16648
>                 URL: https://issues.apache.org/jira/browse/HBASE-16648
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Performance
>    Affects Versions: 2.0.0
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>             Fix For: 2.0.0
>
>         Attachments: HBASE-16648.patch
>
>




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

Mime
View raw message