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
[FLINK-15086][client] Explictly close JobCluster in attach mode #10451
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 219d652 (Fri Dec 06 02:22:18 UTC 2019) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
Verified locally
actually here we have some statements.
TBH for streaming workload which doesn't have a result anyway, it doesn't matter we just fire & forget. And close it when needed. |
I think for |
OK make sense. I will add this constraint in document. Here is the status from my side: I'm afraid I cannot provide document today but IIRC document can be checked in concurrently with or after releasing since it is not a feature. |
What is the purpose of the change
If a JobCluster started in attached execution mode, it will wait for a client requesting its result and shutdown itself. However, there is no permission that a user got
JobClient
fromexecuteAsync
must callgetJobExecutionResult
so the cluster may leak.Since currently the choice detach or attach can be done by user itself, my opinion is that we doesn't close JobCluster in MiniDispatcher in attach mode, but let the client send a shutdown request on close.
Verifying this change
Maybe an end-to-end test for resource leak? I don't have an idea to verify per-job resource leak in UT/IT framework.
Does this pull request potentially affect one of the following parts:
N/A
Documentation
N/A