AHeise edited a comment on issue #9717: [FLINK-14044] [runtime] Reducing 
synchronization in AsyncWaitOperator
URL: https://github.com/apache/flink/pull/9717#issuecomment-534530423
 
 
   After discussion with @1u0 , I changed how elements are emitted.
   
   Previously: whenever n elements are completed in the correct order, 
`outputCompletedElements` emits all of them. That may have blocked the mailbox 
thread unnecessarily if the output is full. A checkpoint event would have been 
only processed once all elements are handled by the `Collector`.
   
   Now: We emit only one element in `outputCompletedElements` to keep latency 
low. Whenever, there are more elements available, directly enqueue a new mail 
to the mailbox. Checkpointing mails can now interleave the emission of records.
   
   Future: if we have non-blocking output, we could emit as many as currently 
fit in the buffer in the same letter.

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


With regards,
Apache Git Services

Reply via email to