You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2020/03/20 20:25:00 UTC

[jira] [Created] (HBASE-24027) Spotbugs: Return value of putIfAbsent is ignored

Wei-Chiu Chuang created HBASE-24027:
---------------------------------------

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


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)