You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "zhijiang (JIRA)" <ji...@apache.org> on 2019/05/10 07:06:00 UTC
[jira] [Created] (FLINK-12474) UnionInputGate should be notified
when closing SingleInputGate by canceler thread
zhijiang created FLINK-12474:
--------------------------------
Summary: UnionInputGate should be notified when closing SingleInputGate by canceler thread
Key: FLINK-12474
URL: https://issues.apache.org/jira/browse/FLINK-12474
Project: Flink
Issue Type: Improvement
Components: Runtime / Network
Reporter: zhijiang
If task is being canceled, the `SingleInputGate` would be closed by canceler thread. If the `SingleInputGate` is waiting for buffer, `inputChannelWithData` would be notified to wake task thread to exit early. But if the `UnionInputGate` is waiting for buffer, task thread is still stucking in wait when `SingleInputGate` is closed until cancel timeout.
To make task exit early in this case, we could make `SingleInputGate` further notify `UnionInputGate` after it is closed, then it could also wake task thread to exit during canceling.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)