flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aljoscha <...@git.apache.org>
Subject [GitHub] flink pull request #2948: [FLINK-5265] Introduce state handle replication mo...
Date Fri, 13 Jan 2017 11:27:18 GMT
Github user aljoscha commented on a diff in the pull request:

    --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/state/OperatorStateCheckpointOutputStream.java
    @@ -66,8 +66,10 @@ OperatorStateHandle closeAndGetHandle() throws IOException {
    -		Map<String, long[]> offsetsMap = new HashMap<>(1);
    -		offsetsMap.put(DefaultOperatorStateBackend.DEFAULT_OPERATOR_STATE_NAME, partitionOffsets.toArray());
    +		Map<String, OperatorStateHandle.StateMetaInfo> offsetsMap = new HashMap<>(1);
    +		OperatorStateHandle.StateMetaInfo metaInfo =
    +				new OperatorStateHandle.StateMetaInfo(partitionOffsets.toArray(), OperatorStateHandle.Mode.BROADCAST);
    --- End diff --
    I think this should be `SPLIT_REDISTRIBUTE` to conform to the old behaviour.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message