[
https://issues.apache.org/jira/browse/FLINK-33756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796949#comment-17796949
]
Jim Hughes commented on FLINK-33756:
------------------------------------
Hi [~jeyhunkarimov], I am not actively working on it; I'll assign it to you for
now.
I think there are two (likely related) things going on: First, some watermark
is getting miscomputed, and second, the hashing happening in the exchange step
is allowing things to happen in either order.
>From the initial time that I looked into this, I also ran across
>`TimeWindow.getWindowStartWithOffset`. I noticed that this method is being
>called with an offset of 0L in `TimeWindowUtil.getNextTriggerWatermark`. I
>cannot be 100% sure that's the problem, but that's the next place I'd be
>checking if I were to continue looking!
> Missing record with CUMULATE/HOP windows using an optimization
> --------------------------------------------------------------
>
> Key: FLINK-33756
> URL: https://issues.apache.org/jira/browse/FLINK-33756
> Project: Flink
> Issue Type: Bug
> Reporter: Jim Hughes
> Priority: Major
>
> I have seen an optimization cause a window fail to emit a record.
> With the optimization `TABLE_OPTIMIZER_DISTINCT_AGG_SPLIT_ENABLED` set to
> true,
> the configuration AggregatePhaseStrategy.TWO_PHASE set, using a HOP or
> CUMULATE window with an offset, a record can be sent which causes one of the
> multiple active windows to fail to emit a record.
> The linked code
> (https://github.com/jnh5y/flink/commit/ec90aa501d86f95559f8b22b0610e9fb786f05d4)
> modifies the `WindowAggregateJsonITCase` to demonstrate the case.
>
> The test `testDistinctSplitDisabled` shows the expected behavior. The test
> `testDistinctSplitEnabled` tests the above configurations and shows that one
> record is missing from the output.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)