You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "Bhupesh Chawda (JIRA)" <ji...@apache.org> on 2017/03/28 09:13:41 UTC

[jira] [Commented] (APEXCORE-503) support KillException

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

Bhupesh Chawda commented on APEXCORE-503:
-----------------------------------------

The graceful + abort shutdown for a dag has been implemented already as part of https://issues.apache.org/jira/browse/APEXCORE-294.
I suggest we use this ticket to allow shutdown of the DAG via any operator. This can be done using a `DagShutdownException` via an operator. The exception would be caught by the Node and sent to the master via a heartbeat. The master then uses the graceful / abort shutdown mechanism to shutdown the entire dag.
The advantage of this would be that the shutdown could be triggered by any operator in the dag, not just the input operators.
Thoughts?

> support KillException
> ---------------------
>
>                 Key: APEXCORE-503
>                 URL: https://issues.apache.org/jira/browse/APEXCORE-503
>             Project: Apache Apex Core
>          Issue Type: Improvement
>            Reporter: Sandesh
>
> Current way for Operators to stop the whole app is to use "ShutdownException". But it is considered as a graceful stop. To stop the whole App when an error condition happens, new exception should be supported, called "KillException" or "KillAppException.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)