You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Zakelly Lan (Jira)" <ji...@apache.org> on 2024/12/20 10:23:00 UTC

[jira] [Commented] (FLINK-36942) Unable to trigger onEventTime() when using the async state API in RowTimestamportOperator

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

Zakelly Lan commented on FLINK-36942:
-------------------------------------

[~au_miner] Thanks for your contribution! The root cause is the test harness `OneInputStreamOperatorTestHarness` is not well implemented with async state. Please use `AsyncKeyedOneInputStreamOperatorTestHarness` instead, when you are testing the async state.

And the PR you mentioned perform a important [fix](https://github.com/apache/flink/pull/25815/files#diff-885dd1cb87987c93b79ac6da39deeb53d5a09dc434196031d4c53e60b18e88e3L57-R66) on `TwoInputStreamOperatorTestHarness`. That's why it runs well.

Please try `AsyncKeyedOneInputStreamOperatorTestHarness`, we will use that harness for all async state operators in future.

> Unable to trigger onEventTime() when using the async state API in RowTimestamportOperator
> -----------------------------------------------------------------------------------------
>
>                 Key: FLINK-36942
>                 URL: https://issues.apache.org/jira/browse/FLINK-36942
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Runtime
>    Affects Versions: 2.0.0
>            Reporter: Wang Qilong
>            Priority: Major
>
> When I use the async state API in RowTimeSortOperator and inherit it from AbstractAsyncStateStreamOperator, I cannot trigger onEventTime() when the timer expires.
> Regarding how to reproduce:
> In [AsyncStateRowTimeSortOperator|https://github.com/Au-Miner/flink/tree/RowTimeSortOperator] and execute the tests in RowTimestamportOperatorTest.
> I think this is a very strange bug because it can be triggered smoothly in [AsyncStateWindowJoinOperator|https://github.com/apache/flink/pull/25815], but cannot be implemented in RowTimestamportOperator.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)