OneSizeFitsQuorum commented on PR #958: URL: https://github.com/apache/ratis/pull/958#issuecomment-1797943945
Hi, @szetszwo, I checked the computeIfAbsent code in ConcurrentHashMap, it seems that the mapping function will be called just once, see issue for [details](https://issues.apache.org/jira/browse/RATIS-1923). So is it side-effect-free? If so, is it necessary to split a hash computation into two get & puts with a large lock -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
