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

ASF GitHub Bot commented on FLINK-2111:
---------------------------------------

Github user StephanEwen commented on the pull request:

    https://github.com/apache/flink/pull/750#issuecomment-114109425
  
    I had a look at your code. A lot of it looks good. 
    
    The one thing I would really like to change is the modification of the 
execution graph state machine. That one is delicate enough and any change to 
that is super critical and intensive to review and test.
    
    I think we can add this functionality without any change to that state 
machine, and should do that. Stopping a streaming program is much like letting 
it come to a finish (telling the source to not consume the stream any further).
    
    How about simply sending the stopping message to the running sources (not 
to all vertices) and letting the execution states transition from RUNNING to 
FINISHED in the regular manner. This would also allow concurrent canceling, 
failure, everything would remain transparent.
    
    In an initial version, I would also recommend to not have the extra 
JobStatus. Just to get the thing working and stable. Then we can later add the 
extra state, if desired (for logging, web frontend).
    
    Some other comments:
      - I think it would be nice to not overload the `AbstractInvokable` with 
more methods. Similar as in the case of checkpointing, you can have an 
interface (stoppable ;-) ) that the invokable can implement to receive the 
message.
    
    
    BTW: I still prefer "stop" over "terminate" ;-) Terminating the programs 
sounds very forceful (like dropping a bomb in the data center). Maybe I am just 
spoiled by some movies...
    
    



> Add "terminate" signal to cleanly stop streaming jobs
> -----------------------------------------------------
>
>                 Key: FLINK-2111
>                 URL: https://issues.apache.org/jira/browse/FLINK-2111
>             Project: Flink
>          Issue Type: Improvement
>          Components: Distributed Runtime, JobManager, Local Runtime, 
> Streaming, TaskManager, Webfrontend
>            Reporter: Matthias J. Sax
>            Assignee: Matthias J. Sax
>            Priority: Minor
>
> Currently, streaming jobs can only be stopped using "cancel" command, what is 
> a "hard" stop with no clean shutdown.
> The new introduced "terminate" signal, will only affect streaming source 
> tasks such that the sources can stop emitting data and terminate cleanly, 
> resulting in a clean termination of the whole streaming job.
> This feature is a pre-requirment for 
> https://issues.apache.org/jira/browse/FLINK-1929



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to