Neo Chien created HDDS-8845:
-------------------------------

             Summary: Replace putIfAbsent with computeIfAbsent in 
ConcurrentHashMap
                 Key: HDDS-8845
                 URL: https://issues.apache.org/jira/browse/HDDS-8845
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Neo Chien


Respect the issue in uniffle 
[https://github.com/apache/incubator-uniffle/issues/493]
The invoking of putIfAbsent will always call its value if it's a time-consuming 
operation. So we'd better replace putIfAbsent with computeIfAbsent in some 
critical paths.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to