[ 
https://issues.apache.org/jira/browse/FLINK-7213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16101484#comment-16101484
 ] 

ASF GitHub Bot commented on FLINK-7213:
---------------------------------------

Github user StefanRRichter commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4353#discussion_r129532719
  
    --- Diff: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java
 ---
    @@ -208,13 +208,13 @@ public MetricGroup getMetricGroup() {
        }
     
        @Override
    -   public final void initializeState(OperatorStateHandles stateHandles) 
throws Exception {
    +   public final void initializeState(OperatorSubtaskState stateHandles) 
throws Exception {
     
                Collection<KeyedStateHandle> keyedStateHandlesRaw = null;
                Collection<OperatorStateHandle> operatorStateHandlesRaw = null;
                Collection<OperatorStateHandle> operatorStateHandlesBackend = 
null;
     
    -           boolean restoring = null != stateHandles;
    +           boolean restoring = (null != stateHandles);
    --- End diff --
    
    I like to do this when generating a boolean out of a `!=` or `==` 
comparison because I find this easier to read in the presence of more than one 
`=` character.


> Introduce state management by OperatorID in TaskManager
> -------------------------------------------------------
>
>                 Key: FLINK-7213
>                 URL: https://issues.apache.org/jira/browse/FLINK-7213
>             Project: Flink
>          Issue Type: Improvement
>          Components: State Backends, Checkpointing
>    Affects Versions: 1.4.0
>            Reporter: Stefan Richter
>            Assignee: Stefan Richter
>
> Flink-5892 introduced the job manager / checkpoint coordinator part of 
> managing state on the operator level instead of the task level by introducing 
> explicit operator_id -> state mappings. However, this explicit mapping was 
> not introduced in the task manager side, so the explicit mapping is still 
> converted into a mapping that suits the implicit operator chain order.
> We should also introduce explicit operator ids to state management on the 
> task manager.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to