[
https://issues.apache.org/jira/browse/RATIS-1921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17779831#comment-17779831
]
Ivan Andika edited comment on RATIS-1921 at 10/26/23 10:35 AM:
---------------------------------------------------------------
Hi [~Nicholas Niu] , what do you think about this issue? Is the worker group
shared across all the Raft clients or only for the between connections in a
single client?
was (Author: JIRAUSER298977):
Hi [~Nicholas Niu] , what do you think about this issue?
> Shared worker group in WorkerGroupGetter should be closed
> ---------------------------------------------------------
>
> Key: RATIS-1921
> URL: https://issues.apache.org/jira/browse/RATIS-1921
> Project: Ratis
> Issue Type: Sub-task
> Components: Netty
> Reporter: Ivan Andika
> Assignee: Ivan Andika
> Priority: Minor
>
> When benchmarking Ozone streaming pipeline using `ozone freon ockg`, the
> benchmark would not end although all the keys have been written.
> Using Arthas, found that non-daemon threads like
> "NettyClientStreamRpc-workerGroup–thread1" are still running even after the
> benchmark has finished.
> It seems that when hdds.ratis.raft.netty.dataStream.client.worker-group.share
> is set to true, it will create a worker group that will be shared. However,
> this worker group will never be closed causing the JVM shutdown hook to never
> be triggered. The benchmark was able to work normally if the share
> configuration is disabled.
> Need to find a way to shutdown the worker group gracefully without losing the
> shared worker group benefit.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)