pnowojski commented on a change in pull request #9779: [FLINK-14214][runtime]
Shortcut isAvailable().isDone() anti-starvation check in StreamTwoInputProcesso
URL: https://github.com/apache/flink/pull/9779#discussion_r330081608
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/StreamTwoInputProcessor.java
##########
@@ -293,9 +291,12 @@ private void updateAvailability(InputStatus status,
StreamTaskInput input) {
}
private void checkAndSetAvailable(int inputIndex) {
- StreamTaskInput input = getInput(inputIndex);
+ CompletableFuture<?> inputAvailable =
getInput(inputIndex).isAvailable();
Review comment:
It might be a good idea. I will try it 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