You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jan Hentschel (Jira)" <ji...@apache.org> on 2020/03/20 22:19:00 UTC
[jira] [Resolved] (HBASE-24027) Spotbugs: Return value of
putIfAbsent is ignored
[ https://issues.apache.org/jira/browse/HBASE-24027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Hentschel resolved HBASE-24027.
-----------------------------------
Resolution: Duplicate
This one duplicates HBASE-23983.
> Spotbugs: Return value of putIfAbsent is ignored
> ------------------------------------------------
>
> Key: HBASE-24027
> URL: https://issues.apache.org/jira/browse/HBASE-24027
> Project: HBase
> Issue Type: Bug
> Components: master
> Reporter: Wei-Chiu Chuang
> Priority: Major
>
> Looks like a regression from HBASE-23561.
> [https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1301/2/artifact/yetus-general-check/output/branch-spotbugs-hbase-server-warnings.html]
> {quote}
> Return value of putIfAbsent is ignored, but node is reused in org.apache.hadoop.hbase.master.assignment.RegionStates.createRegionStateNode(RegionInfo)
> Bug type RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED (click for details)
> In class org.apache.hadoop.hbase.master.assignment.RegionStates
> In method org.apache.hadoop.hbase.master.assignment.RegionStates.createRegionStateNode(RegionInfo)
> Called method java.util.concurrent.ConcurrentSkipListMap.putIfAbsent(Object, Object)
> Type org.apache.hadoop.hbase.master.assignment.RegionStateNode
> Value loaded from node
> At RegionStates.java:[line 133]
> {quote}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)