You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Aitozi (Jira)" <ji...@apache.org> on 2022/04/29 09:14:00 UTC

[jira] [Comment Edited] (FLINK-27337) Prevent session cluster to be deleted when there are running jobs

    [ https://issues.apache.org/jira/browse/FLINK-27337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17529879#comment-17529879 ] 

Aitozi edited comment on FLINK-27337 at 4/29/22 9:13 AM:
---------------------------------------------------------

I want to solve this in the following way
 # In webhook we can prevent the deletion/upgrade if there is session jobs in the session cluster.
 # In SessionReconciler cleanup and reconcile we should also check whether there is session job and decide to upgrade/delete session cluster or postpone to do that until there is no session jobs. (Because user may not enable the webhook)
 # Make the check configurable, users can choose to manually suspend the job before upgrade/delete the session cluster or directly done by the operator (propagating the delete or upgrade)

what do you think [~wangyang0918] [~gyfora] 


was (Author: aitozi):
 

I want to solve this in the following way
 # In webhook we can prevent the deletion/upgrade if there is session jobs in the session cluster.
 # In SessionReconciler cleanup and reconcile we should also check whether there is session job and decide to upgrade/delete session cluster or postpone to do that until there is no session jobs. (Because user may not enable the webhook)
 # Make the check configurable, users can choose to manually suspend the job before upgrade/delete the session cluster or directly done by the operator (propagating the delete or upgrade)

what do you think [~wangyang0918] [~gyfora] 

> Prevent session cluster to be deleted when there are running jobs
> -----------------------------------------------------------------
>
>                 Key: FLINK-27337
>                 URL: https://issues.apache.org/jira/browse/FLINK-27337
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Kubernetes Operator
>            Reporter: Yang Wang
>            Priority: Major
>             Fix For: kubernetes-operator-1.0.0
>
>
> We should prevent the session cluster to be deleted when there are running jobs. 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)