wuchong commented on a change in pull request #9741: [FLINK-14119][table] Clean
idle state for RetractableTopNFunction
URL: https://github.com/apache/flink/pull/9741#discussion_r327484233
##########
File path:
flink-table/flink-table-runtime-blink/src/test/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunctionTest.java
##########
@@ -219,4 +219,36 @@ public void testDisableGenerateRetraction() throws
Exception {
.assertOutputEqualsSorted("output wrong.",
expectedOutput, testHarness.getOutput());
}
+ @Test
+ public void testCleanIdleState() throws Exception {
+ AbstractTopNFunction func = createFunction(RankType.ROW_NUMBER,
new ConstantRankRange(1, 2), true,
+ true);
+ OneInputStreamOperatorTestHarness<BaseRow, BaseRow> testHarness
= createTestHarness(func);
+ testHarness.open();
+ // register cleanup timer with 2000
Review comment:
Actually, it registered a timer for 1020L. Because maxTime is 20L.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services