pnowojski commented on a change in pull request #9478: [FLINK-13766][task]
Refactor the implementation of StreamInputProcessor based on
StreamTaskInput#emitNext
URL: https://github.com/apache/flink/pull/9478#discussion_r318561079
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/StreamTwoInputSelectableProcessor.java
##########
@@ -381,12 +333,28 @@ private ForwardingValveOutputHandler(
this.streamStatusMaintainer =
checkNotNull(streamStatusMaintainer);
this.inputWatermarkGauge = inputWatermarkGauge;
+ this.numRecordsIn = checkNotNull(numRecordsIn);
this.inputIndex = inputIndex;
}
@Override
- public void handleWatermark(Watermark watermark) throws
Exception {
+ @SuppressWarnings("unchecked")
+ public void emitRecord(StreamRecord record) throws Exception {
+ synchronized (lock) {
+ numRecordsIn.inc();
+ if (inputIndex == 0) {
Review comment:
I think this is fine. Drawback is that stacktraces/debugging will be a
little bit more difficult, but we can try this out.
----------------------------------------------------------------
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