rkhachatryan commented on a change in pull request #10151: [FLINK-14231] Handle
the pending processing-time timers to make endInput semantics on the operator
chain strict
URL: https://github.com/apache/flink/pull/10151#discussion_r369234977
##########
File path:
flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/output/BoundedStreamTask.java
##########
@@ -67,7 +67,7 @@
@Override
protected void init() throws Exception {
Preconditions.checkState(
- operatorChain.getAllOperators().length == 1,
+ operatorChain.getNumberOfOperators() == 1,
Review comment:
If this left as is (line 75) then wouldn't `ProcessingTimerService` of the
`headOperator` be ignored in the close operation.
It is re-created in
`org.apache.flink.state.api.output.BoundedStreamTask#init`, and the
`OperatorChain` contains an old reference now.
----------------------------------------------------------------
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