-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NIFI-10232 - Add timeouts to the channel CacheClientChannelInitialize… #6221
Conversation
…r for the NettyDistributedMapCacheClient.
I believe there may be another issue related to the DistributedMapCache which is causing NiFi to hang on shutdown, so I will investigate the cause of that.. this is what is showing in the logs with a flow only containing the server and client controller services and nothing else:
|
I was trying to track down the issue of NiFi not shutting down cleanly when a user disables/enables the DistributedMapCacheClientService, but I did not come up with anything definitive. I've added some debug logging for future troubleshooting, and noted that it seems that NiFi does appear to be shutting down fine, but for whatever reason the bootstrap service itself is not being notified. The log in NiFi shows:
and the bootstrap log on the console shows:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvements @thenatog! Adding OnShutdown
to DistributedCacheServer
and DistributedCacheMapClientService
should improve standard behavior, and applying the communications timeout to write and idle operations looks good. +1 merging
…r for the NettyDistributedMapCacheClient.
Summary
NIFI-10232
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000
NIFI-00000
Pull Request Formatting
main
branchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-check
Licensing
LICENSE
andNOTICE
filesDocumentation