tweise commented on PR #281:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/281#issuecomment-1169419765

   > The PR looks pretty good!
   > 
   > My only question whether we should trigger events before or after 
executing the actions using the Flink service.
   > 
   > For example now we trigger a suspended event before trying to cancel the 
job. So it might happen that the event is there but the job is not suspended. 
Of course we could have the reverse situation if we changed the order. Just 
wanted to discuss this explicitly.
   > 
   > What do you think @tweise ?
   
   It should be OK to have the event logged first. If the subsequent action 
fails, we have a trace that it was attempted and any subsequent error would 
yield anther event so that there should not be any confusion.
   
   I pulled the reason codes into `EventRecorder`. (I did not add them to the 
listener as the listener does not actually reference them and it would also be 
a bit unusual to have them there from the operator code caller perspective.)
   
   @gyfora @morhidi PTAL


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to