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

[FLINK-27804] Do not observe cluster/job mid upgrade #245

Merged
merged 1 commit into from
May 27, 2022

Conversation

gyfora
Copy link
Contributor

@gyfora gyfora commented May 26, 2022

UPGRADING state means we have either deleted the deployment for last-state upgrades or observed the result of the cancel with savepoint operation.

No need to further observe anything

@gyfora gyfora requested a review from wangyang0918 May 26, 2022 22:20
@wangyang0918
Copy link
Contributor

Does this PR could work when the operator failed before patching the status, but after the job is canceled with savepoint successfully?

@gyfora
Copy link
Contributor Author

gyfora commented May 27, 2022

Yes @wangyang0918 as it would only be in UPGRADING state if patching succeeded after the cancel-with-savepoint operation

@wangyang0918
Copy link
Contributor

Does this PR could work when the operator failed before patching the status, but after the job is canceled with savepoint successfully?

When the JobManager pod exactly failed over at the same time, we will never get the savepoint. But this is out the scope of this PR.

Copy link
Contributor

@wangyang0918 wangyang0918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@gyfora
Copy link
Contributor Author

gyfora commented May 27, 2022

Merging this for now, there is definitely follow up work to be done in the future to handle cases when the actual deployment step fails during an upgrade which is generally not handled at the moment

@gyfora gyfora merged commit aa4f1d6 into apache:main May 27, 2022
@gyfora gyfora deleted the FLINK-27804 branch June 27, 2022 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants