Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hotfix][network] Simplify SingleInputGate#isFinished
Previous implementation of #isFinished was not only checking whether the input gate is finished, but also if it was closed. This commit simplifies #isFinished to just check whether the input gate is finished. The only difference is that the following scenario: inputGate.close() inputGate.isFinished() (2) before this change (2) would return true, now it will return false. This potentially could be relevant, because TaskCanceller is calling InputGate#close, however it doesn't relay on #isFinished(). Any InputGate's user after accessing InputGate#get/pollNextBufferOrEvent would still get an IllegalStateException("Released") both before and after this change, so changing/simplifying #isFinished() implementation from "isFinishedOrClosed()" as it was before to just "isFinished()" shouldn't matter.
- Loading branch information