You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2026/04/09 18:02:00 UTC
[jira] [Commented] (HDDS-15006) XceiverClientGrpc may create and drop connections without closing it
[ 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org