[
https://issues.apache.org/jira/browse/HDDS-15006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072402#comment-18072402
]
Tsz-wo Sze commented on HDDS-15006:
-----------------------------------
[~ptlrs], thanks for picking this up! We probably should create a ChannelInfo
inside ConcurrentHashMap.compute(..) without creating a connection. Then,
connect after compute(..) returns.
> XceiverClientGrpc may create and drop connections without closing it
> --------------------------------------------------------------------
>
> Key: HDDS-15006
> URL: https://issues.apache.org/jira/browse/HDDS-15006
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone Client
> Reporter: Tsz-wo Sze
> Assignee: Rishabh Patel
> Priority: Major
>
> In HDDS-14571, it uses ConcurrentHashMap.compute(..) to create connection in
> XceiverClientGrpc. However, ConcurrentHashMap.compute(..) can use the
> remappingFunction to create and drop objects when there is a race condition.
> As a result, it may create a connection and then drop it without closing it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]