AHeise commented on a change in pull request #10435: [FLINK-13955][runtime]
migrate ContinuousFileReaderOperator to the mailbox execution model
URL: https://github.com/apache/flink/pull/10435#discussion_r370039820
##########
File path:
flink-fs-tests/src/test/java/org/apache/flink/hdfstests/ContinuousFileProcessingTest.java
##########
@@ -166,21 +171,21 @@ public void testFileReadingOperatorWithIngestionTime()
throws Exception {
final long watermarkInterval = 10;
ContinuousFileReaderOperator<String> reader = new
ContinuousFileReaderOperator<>(format);
- final
OneInputStreamOperatorTestHarness<TimestampedFileInputSplit, String> tester =
- new OneInputStreamOperatorTestHarness<>(reader);
+ final
OneInputStreamOperatorTestHarness<TimestampedFileInputSplit, String> tester =
getTester(reader);
tester.getExecutionConfig().setAutoWatermarkInterval(watermarkInterval);
tester.setTimeCharacteristic(TimeCharacteristic.IngestionTime);
reader.setOutputType(typeInfo, tester.getExecutionConfig());
- tester.open();
+ tester.getTaskMailbox().put(new Mail(tester::open, 0, ""));
Review comment:
Should we introduce a convenience method `enqueueMail(Runnable)` in
TestHarness?
That would shorten the line to `tester.enqueueMail(tester::open)`.
----------------------------------------------------------------
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