You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yingjie Cao (Jira)" <ji...@apache.org> on 2020/08/13 09:52:00 UTC

[jira] [Closed] (FLINK-18728) Make initialCredit of RemoteInputChannel final

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

Yingjie Cao closed FLINK-18728.
-------------------------------
    Resolution: Fixed

> Make initialCredit of RemoteInputChannel final
> ----------------------------------------------
>
>                 Key: FLINK-18728
>                 URL: https://issues.apache.org/jira/browse/FLINK-18728
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / Network
>            Reporter: Yingjie Cao
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.12.0
>
>
> The filed initialCredit of RemoteInputChannel is set only once and can be accessed by multi threads. We can make the filed final and moves the initialization to the constructor of RemoteInputChannel to avoid potential thread safety issues.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)