flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhangminglei <...@git.apache.org>
Subject [GitHub] flink pull request #3812: [FLINK-6346] Migrate from Java serialization for G...
Date Wed, 03 May 2017 09:05:23 GMT
Github user zhangminglei commented on a diff in the pull request:

    --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/GenericWriteAheadSink.java
    @@ -88,15 +93,23 @@ public void initializeState(StateInitializationContext context) throws
     		Preconditions.checkState(this.checkpointedState == null,
     			"The reader state has already been initialized.");
    -		checkpointedState = context.getOperatorStateStore()
    -			.getSerializableListState("pending-checkpoints");
    +		javaCheckpointedState = context.getOperatorStateStore().getSerializableListState(checkpointedStateDescriptor.getName());
    --- End diff --
    @zentol I think he stores it in this field for later to write in ```snapshotState ```.

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