[ 
https://issues.apache.org/jira/browse/FLINK-41735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-41735:
-----------------------------------
    Labels: pull-request-available  (was: )

> Async join returns wrong results with ForSt
> -------------------------------------------
>
>                 Key: FLINK-41735
>                 URL: https://issues.apache.org/jira/browse/FLINK-41735
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Runtime
>    Affects Versions: 2.3.0
>         Environment: Flink 2.3, table.exec.async-state.enabled=true, ForSt 
> state backend
>            Reporter: Dmitriy Linevich
>            Priority: Major
>              Labels: pull-request-available
>
> With the async State API enabled and the ForSt state backend, a streaming 
> join may pair a row with a record belonging to a different key. The result is 
> silently incorrect; retract and outer joins can also fail with "Tried to 
> retract a value that wasn't added first".
> Cause: JoinRecordAsyncStateViews / OuterJoinRecordAsyncStateViews (unique-key 
> case) return a single shared mutable list from the async lookup callback. 
> Concurrent lookups overwrite each other's result.
> h3. How to reproduce
> Run JoinRRITCase#testJoinWithJoinConditionPushDown with the async ForSt 
> backend
> (table.exec.async-state.enabled = true, state.backend.type = forst).
> *Expected*
> List(2,1.0,2,2,3.0,2, 3,3.0,1,3,2.0,1, 6,null,1,6,null,1)
> *Actual*
> List(2,1.0,1,6,null,1, 2,1.0,2,2,3.0,2, 3,3.0,1,3,2.0,1)
>  
> Run JoinRRITCase#testJoinWithFilterPushDown with the async ForSt backend
> (table.exec.async-state.enabled = true, state.backend.type = forst).
> *Expected*
> List(2,1.0,2,2,3.0,2, 3,3.0,1,3,2.0,1, 6,null,1,6,null,1)
> *Actual*
> List(3,3.0,1,2,3.0,2, 3,3.0,1,3,2.0,1, 6,null,1,6,null,1)



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

Reply via email to