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...
    
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to