[jira] [Created] (FLINK-16712) Refactor StreamTask to construct final fields

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-16712) Refactor StreamTask to construct final fields

Shang Yuanchun (Jira)
Zhijiang created FLINK-16712:
--------------------------------

             Summary: 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
             Fix For: 1.11.0


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)