-
Notifications
You must be signed in to change notification settings - Fork 1k
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] [Flink-Kubernetes-V2] add observer untrack on Flink-Kubernetes-V2-Session #3216
Conversation
… into dev � Conflicts: � README.md
@@ -125,6 +128,9 @@ object KubernetesSessionClientV2 extends KubernetesClientV2Trait with Logger { | |||
|
|||
FlinkK8sOperator.k8sCrOpr.deleteSessionJob(namespace, name).runIOAsTry match { | |||
case Success(_) => | |||
observer.trackedKeys | |||
.find(_.id == shutDownRequest.id) | |||
.someOrUnitZIO(key => observer.untrack(key)) |
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.
This section is a ZIO value, so in fact it will not be executed.
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.
thank you
@@ -125,6 +128,9 @@ object KubernetesSessionClientV2 extends KubernetesClientV2Trait with Logger { | |||
|
|||
FlinkK8sOperator.k8sCrOpr.deleteSessionJob(namespace, name).runIOAsTry match { |
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.
When the shutdown
here is shutting down a flink cluster, the FlinkK8sOperator.delete()
function should be called, which automatically untracks the flink cluster resources
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.
thank you
What changes were proposed in this pull request
[Improve] [FLink-Kubernetes-V2] add observer untrack on Flink-Kubernetes-V2-Session
Brief change log
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts