[ 
https://issues.apache.org/jira/browse/FLINK-41808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18154697#comment-18154697
 ] 

Martijn Visser commented on FLINK-41808:
----------------------------------------

Not limited to ARRAY<STRING>: MAP, MULTISET, nested ROW and structured types 
are corrupted the same way, and without assertions some MAP cases fail the job 
with IndexOutOfBoundsException. Async lookup has the same race, see 
FLINK-30612. Converting in the mailbox, as PR #26817 does, gives 0 wrong rows; 
with 256-element arrays and 64 or more calls in flight it costs 9 to 25% 
throughput, and nothing measurable at 8 elements.

> 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
>    Affects Versions: 2.2.0, 2.4.0, 2.5.0, 2.3.2
>            Reporter: Martijn Visser
>            Priority: Major
>
> 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