You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Huang Xingbo (Jira)" <ji...@apache.org> on 2021/07/08 08:47:00 UTC

[jira] [Created] (FLINK-23309) Optimize the finish bundle logic in PyFlink

Huang Xingbo created FLINK-23309:
------------------------------------

             Summary: Optimize the finish bundle logic in PyFlink
                 Key: FLINK-23309
                 URL: https://issues.apache.org/jira/browse/FLINK-23309
             Project: Flink
          Issue Type: Improvement
          Components: API / Python
            Reporter: Huang Xingbo
            Assignee: Huang Xingbo
             Fix For: 1.14.0


Whenever the `bundle size` or `bundle time` is reached, the data in the input buffer needs to be sent from the jvm to the pvm, and then waits for the pym to be processed and sent back to the jvm to send all the results to the downstream operator, which leads to a large delay in current implementation of main thread triggering `finish bundle`, especially when it is a small size event as small messages are hard to processed in pipeline.

We need to move the logic of `finish bundle` from the main thread to the asynchronous sending thread, so as to avoid the problem of the main thread being blocked.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)