[ 
https://issues.apache.org/jira/browse/FLINK-12842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-12842:
-----------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Minor
>              Labels: pull-request-available
>
> 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)

Reply via email to