sunhaibotb opened a new pull request #9854: [FLINK-14230][task] Change the endInput call of the downstream operator to after the upstream operator closes URL: https://github.com/apache/flink/pull/9854 ## What is the purpose of the change This pull request fixes the error of propagating `endInput` on the chain immediately after the input of the head operator is finished, and reverts the changes of [PR#9298](https://github.com/apache/flink/pull/9298) and [PR#9221](https://github.com/apache/flink/pull/9221). Correctly, `endInput` of the downstream operator should be invoked only after closing the upstream operator. ## Brief change log - Changes the `endInput` call of the downstream operator to after the upstream operator closes - Removes the `BoundedOneInput` implementation of `AsyncWaitOperator` and `ContinuousFileReaderOperator` ## Verifying this change This change modified some existing tests to verify the following: - `SourceStreamTask`: When the downstream operator on the chain executes the logic of `endInput`, it should have received all the records that the upstream operator outputs before and within `close`. - `OneInputStreamTask`: When the downstream operator on the chain executes the logic of `endInput`, it should have received all the records that the upstream operator outputs before and within `close`. - `TwoInputStreamTask`: When the downstream operator on the chain executes the logic of `endInput`, it should have received all the records that the upstream operator outputs before and within `close`. ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (yes / **no**) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / **no**) - The serializers: (yes / **no** / don't know) - The runtime per-record code paths (performance sensitive): (yes / **no** / don't know) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / **no** / don't know) - The S3 file system connector: (yes / **no** / don't know) ## Documentation - Does this pull request introduce a new feature? (yes / **no**) - If yes, how is the feature documented? (**not applicable** / docs / JavaDocs / not documented)
---------------------------------------------------------------- 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
