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

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

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

    https://github.com/apache/flink/pull/5230#discussion_r163942745
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/OperatorBackendSerializationProxy.java
 ---
    @@ -77,16 +90,29 @@ public void read(DataInputView in) throws IOException {
                super.read(in);
     
                int numKvStates = in.readShort();
    -           stateMetaInfoSnapshots = new ArrayList<>(numKvStates);
    +           operatorStateMetaInfoSnapshots = new ArrayList<>(numKvStates);
                for (int i = 0; i < numKvStates; i++) {
    -                   stateMetaInfoSnapshots.add(
    -                           
OperatorBackendStateMetaInfoSnapshotReaderWriters
    -                                   .getReaderForVersion(getReadVersion(), 
userCodeClassLoader)
    -                                   .readStateMetaInfo(in));
    +                   operatorStateMetaInfoSnapshots.add(
    +                                   
OperatorBackendStateMetaInfoSnapshotReaderWriters
    +                                                   
.getOperatorStateReaderForVersion(getReadVersion(), userCodeClassLoader)
    +                                                   
.readOperatorStateMetaInfo(in));
                }
    +
    +           int numBroadcastStates = in.readShort();
    --- End diff --
    
    I think somehow the migration test cases are not failing here, only because 
`in.readShort()` happens to return 0.


> Iterate over keyed state on broadcast side of connect with broadcast.
> ---------------------------------------------------------------------
>
>                 Key: FLINK-8345
>                 URL: https://issues.apache.org/jira/browse/FLINK-8345
>             Project: Flink
>          Issue Type: New Feature
>          Components: Streaming
>    Affects Versions: 1.5.0
>            Reporter: Kostas Kloudas
>            Assignee: Kostas Kloudas
>            Priority: Major
>             Fix For: 1.5.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to