Dmitriy Linevich created FLINK-41735:
----------------------------------------

             Summary: 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


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#testInnerJoinWithEqualPk with the async ForSt backend
(table.exec.async-state.enabled = true, state.backend.type = forst).

*Expected*
List(1,1, 2,2, 3,3)
*Actual*
List(2,1, 2,2, 3,3)



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

Reply via email to