Martijn Visser created FLINK-41808:
--------------------------------------

             Summary: AsyncTableFunction results are corrupted by concurrent 
conversion
                 Key: FLINK-41808
                 URL: https://issues.apache.org/jira/browse/FLINK-41808
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Runtime
            Reporter: Martijn Visser


AsyncCorrelateRunner converts the function result to internal data on the 
thread that completes the future. The converter is shared by all in-flight 
calls and is not thread-safe (see FLINK-30612). With an AsyncTableFunction 
returning ARRAY<STRING> and 64 concurrent completions, 4,085 to 4,394 of 19,968 
rows had wrong array elements on master over 3 runs, in a plain LATERAL TABLE 
join. Affects 2.2.0 and later. PR #26817 moves the conversion into the mailbox 
thread, which gives 0 wrong rows in the same runs.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to