You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Zhijiang (Jira)" <ji...@apache.org> on 2020/03/23 03:31:00 UTC

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

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)