Skip to content
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

[Improve] Graceful stop flink job with savepoint #3596

Open
3 tasks done
dyccode opened this issue Mar 4, 2024 · 5 comments
Open
3 tasks done

[Improve] Graceful stop flink job with savepoint #3596

dyccode opened this issue Mar 4, 2024 · 5 comments

Comments

@dyccode
Copy link
Contributor

dyccode commented Mar 4, 2024

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Description

The stop interface of Flink can elegantly stop jobs.The biggest difference between the cancel interface and the stop interface is that the stop interface is used to stop the task. After the savepoint is generated, the job can wait for notifyCheckpointComplete() to complete the execution.So, I want to use the stop interface by default when using savepoint to stop Flink jobs.

Usage Scenario

When using savepoint to stop Flink jobs.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@dyccode
Copy link
Contributor Author

dyccode commented Mar 4, 2024

Does theFINISHED state mean that the job has been permanently stopped?

@wolfboys
Copy link
Member

wolfboys commented Mar 4, 2024

Do you want to improve this issue? Looking forward to your PR! 😊

@wolfboys
Copy link
Member

wolfboys commented Mar 4, 2024

Does theFINISHED state mean that the job has been permanently stopped?

Yes, I think so, The status indicates that the flink job has been thoroughly completed and stopped. 👍

@dyccode
Copy link
Contributor Author

dyccode commented Mar 9, 2024

Yes, I think so, The status indicates that the flink job has been thoroughly completed and stopped. 👍

Is the FINISHED status consistent with the status of Flink? When Flink uses the stop interface to stop a job, the final state of the task is FINISHED. Should the state in streampark be consistent with Flink's state?

@dyccode
Copy link
Contributor Author

dyccode commented May 17, 2024

@wolfboys Due to being quite busy recently, I only started working on this issue yesterday.When I finished the development and started testing my code, I found that the program wouldn't start. I discovered that the startup configuration file's name had been changed, but the program was still trying to read the previous name. I am using the latest code.Are there any specific considerations or precautions I should take when using the latest code? I look forward to your response.

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

No branches or pull requests

2 participants