zhijiang created FLINK-12842:
--------------------------------
Summary: Fix invalid check released state during ResultPartition#createSubpartitionView
Key: FLINK-12842
URL:
https://issues.apache.org/jira/browse/FLINK-12842 Project: Flink
Issue Type: Sub-task
Components: Runtime / Network
Reporter: zhijiang
Assignee: zhijiang
Currently in {{ResultPartition#createSubpartitionView}} it would check whether this partition is released before creating view. But this check is based on {{refCnt != -1}} which seems invalid, because the reference counter would not always reflect the released state.
In the case of {{ResultPartition#release/fail}}, the reference counter is not set to -1. Even if in the case of {{ResultPartition#onConsumedSubpartition}}, the reference counter seems also no chance to be -1.
So we could check the real {{isReleased}} state during creating view instead of reference counter.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)