rkhachatryan commented on PR #29954:
URL: https://github.com/apache/flink/pull/29954#issuecomment-7116647714

   > > . I'll push a commit that caps the urgent mails served per batch round 
at pending urgent + batch size (computed at createBatch).
   
   > @rkhachatryan, there is one more risk, which I am not sure is addressed. 
My bigger concern was that urgent UC messages can delay processing "control" 
messages (as they both go in the urgent queue). It seems to me that most 
control messages (especially the ones propagating errors on failure or marking 
all tasks completed etc) must not be overtaken by any of UC messages, because a 
lot of these control messages are "terminal" and no checkpoints are expected to 
be completed after. For control mails that are terminal, we should process them 
right away rather than allow any other "work" related messages to delay the job 
failure/completion. I think that introducing cap per batch would make that even 
worse.
   
   
   
   @Izeren control mails were already urgent since FLINK-35051, so waiting 
behind earlier urgent mails isn't new. With this PR:
   - control mails can't be overtaken by mails enqueued after them (urgent 
mails are FIFO; previously the order wasn't guaranteed)
   - they wait for the urgent mails enqueued before them, and only under urgent 
overload (budget used up) additionally for the rest of the batch + 1 default 
action step, which is what pre-FLINK-35051 had anyway
   
   I don't think that's problematic: the earlier urgent mails are cheap, 
especially after cancellation (performCheckpoint declines when !isRunning), and 
cancellation doesn't rely on the mail alone.
   


-- 
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: [email protected]

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

Reply via email to