-
Notifications
You must be signed in to change notification settings - Fork 498
[FLINK-32033][Kubernetes-Operator] Fix Lifecycle Status of FlinkDeployment Resource in case of MISSING/ERROR JM status #997
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
188a27d
[FLINK-32033][Kubernetes-Operator] Fix Lifecycle status in case of MI…
150bee1
[FLINK-32033][Kubernetes-Operator] Fix Lifecycle status in case of MI…
45ba37d
[FLINK-32033][Kubernetes-Operator] Fix Lifecycle status in case of MI…
b68c097
[FLINK-32033][Kubernetes-Operator] Refactor the exception messages us…
2bf53e9
[FLINK-32033][Kubernetes-Operator] Refactor the exception messages us…
313fd6c
[FLINK-32033][Kubernetes-Operator] Refactor the exception messages us…
1c7cacf
[FLINK-32033][Kubernetes-Operator] Correct the strings for tests
1d3eed0
Merge branch 'apache:main' into fix-missing-JM-status
nishita-09 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why are we checking this specific error?
In any case we are the ones triggering this error so please create a constant in the
AbstractJobReconcilerand use that hereThere 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.
@gyfora this seems to be the only case when we know that the cluster cannot recover on its own and needs a manual restore. hence used this. Will set this as a constant instead for a cleaner code.
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.
@gyfora
There are multiple instances where
HA metadata not availableis written in different forms likeHA metadata not availableandHA data is not available. Should we maintain a uniformity in these by changing these exception messages using a constant (now that it is available).Also currently
flink-operator-apidoes not haveflink-operatoras a dependency -> to use the constants inAbstractJobReconcilerwe would have to import it as a dependency as the status change logic resides inflink-operator-api.Should I still go ahead with this?
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.
If possible let's use a single constant, and we can keep that constant in the operator api module so the reconciler can use it
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.
@gyfora
I have added 3 constants for error messages which are frequently used and would mean that they are terminal, and referenced those in the reconcilers to maintain uniformity. I have also tried to keep the net changes minimum (Although a few error messages would differ slightly). Do let me know if this looks good?