Skip to content

Fix the grpc client channel executor is shutdown#520

Merged
yanhom1314 merged 3 commits intodromara:masterfrom
Assassinxc:fix-grpc-client-channel-executer-shutdown
Feb 11, 2025
Merged

Fix the grpc client channel executor is shutdown#520
yanhom1314 merged 3 commits intodromara:masterfrom
Assassinxc:fix-grpc-client-channel-executer-shutdown

Conversation

@Assassinxc
Copy link
Contributor

@Assassinxc Assassinxc commented Jan 24, 2025

#382
By default, grpc server and client use the same threadpool that is from the SharedResourcePool, ServerImplBuilder's executorPool field and ManagedChannelImplBuilder.build() show that. when dynamictp enhance the grpc serverImpl's threadpool, it shutdown the origin threadpool, so the threadpool(the same one) in ManagedChannelImpl is also shutdown.
image
image

so, before finalize the threadpool, I check that whether the origin threadpool is used in ChannelImpl.

@yanhom1314
Copy link
Collaborator

LGTM

@yanhom1314 yanhom1314 merged commit cae72b2 into dromara:master Feb 11, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants