[jira] [Created] (FLINK-13871) Consolidate isRunning, canceled, isFinished fields in StreamTask and SourceStreamTask

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

[jira] [Created] (FLINK-13871) Consolidate isRunning, canceled, isFinished fields in StreamTask and SourceStreamTask

Shang Yuanchun (Jira)
Alex created FLINK-13871:
----------------------------

             Summary: Consolidate isRunning, canceled, isFinished fields in StreamTask and SourceStreamTask
                 Key: FLINK-13871
                 URL: https://issues.apache.org/jira/browse/FLINK-13871
             Project: Flink
          Issue Type: Improvement
          Components: Runtime / Task
            Reporter: Alex


{{StreamTask}} has two {{volatile boolean}} fields ({{canceled}}, {{isFinished}})
and {{SourceStreamTask}} has an additional {{isFinished}} field.

In practice, those fields are mutually exclusive and reflect different stages of stream task's lifecycle. It should be possible to represent all three fields as one (enumerated) state field.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)