[ 
https://issues.apache.org/jira/browse/HDDS-13939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18039131#comment-18039131
 ] 

Huang Guan Hao commented on HDDS-13939:
---------------------------------------

[~szetszwo] thanks!

> Potential channel leak in StreamingClient.stream() method
> ---------------------------------------------------------
>
>                 Key: HDDS-13939
>                 URL: https://issues.apache.org/jira/browse/HDDS-13939
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Huang Guan Hao
>            Assignee: Huang Guan Hao
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.2.0
>
>
> The `StreamingClient.stream()` method creates a Netty channel but doesn't 
> explicitly close it when `await()` operations timeout. While 
> `EventLoopGroup.shutdownGracefully()` eventually closes channels when 
> `StreamingClient.close()` is called, channels may remain open until then, 
> potentially causing resource leaks if `close()` is not called promptly.
> https://github.com/apache/ozone/blame/f4660a254a1bc89d78dda55c5543e4f93f1f5ac4/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/stream/StreamingClient.java#L88-L104



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