StephanEwen commented on pull request #15601:
URL: https://github.com/apache/flink/pull/15601#issuecomment-820502234


   About the "ready signatures": If we can make signature 1 work well without 
much complication, I find it easier to understand.
   For the uses we have right now, the coordinator anyways waits for another 
event (like RegisterReader) before starting.
   
   If we see that we need other cases in the future, we can do one of two 
things, which are easy changes:
     - Ensure that events are queued on the TM side as soon as the task is in 
INITIALIZING state, meaning that while the AbstractInvokable isn't yet 
constructed, the events are queued and later disatched.
     - Changing the coordinator to go to ready only in RUNNING. If an event 
comes before that, we pre-maturely switch it to RUNNING and after that dispatch 
the event, meaning we call `subtaskReady()` directly followed by 
`handleOperatorEvent()`.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to