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

Zhijiang closed FLINK-16712.
----------------------------
    Resolution: Fixed

Merged in master: bb4ec22a7d0e0d0831ec56b121eefb465bf8f939

> Refactor StreamTask to construct final fields
> ---------------------------------------------
>
>                 Key: FLINK-16712
>                 URL: https://issues.apache.org/jira/browse/FLINK-16712
>             Project: Flink
>          Issue Type: Task
>          Components: Runtime / Task
>            Reporter: Zhijiang
>            Assignee: Zhijiang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.11.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> At the moment there are four fields initialized in the method of 
> StreamTask#beforeInvoke, such as `stateBackend`, `checkpointStorage`, 
> `timerService`, `asyncOperationsThreadPool`.
> In general it is suggested to use final fields to get known benefits. So we 
> can refactor the StreamTask to initialize these fields in the constructor 
> instead.



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

Reply via email to