sunhaibotb commented on a change in pull request #10151: [FLINK-14231] Handle
the processing-time timers before closing operator to properly support endInput
URL: https://github.com/apache/flink/pull/10151#discussion_r348390418
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java
##########
@@ -994,10 +972,18 @@ TimerService getTimerService() {
return timerService;
}
- public ProcessingTimeService getProcessingTimeService(int
operatorIndex) {
+ @VisibleForTesting
+ StreamOperator<?> getHeadOperator() {
+ return operatorChain.getHeadOperator();
+ }
+
+ public ProcessingTimeService getProcessingTimeService(StreamOperator<?>
operator, int chainIndex) {
Review comment:
The parameter passed in `getprocessingTimeService` is `chainindex`, but also
there is no data structure mapping `chainIndex` to `operatorIndex ` in
`OperatorChain`.
----------------------------------------------------------------
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