tillrohrmann commented on a change in pull request #7320: [FLINK-11171] Avoid
concurrent usage of StateSnapshotTransformer
URL: https://github.com/apache/flink/pull/7320#discussion_r245368875
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateTableSnapshot.java
##########
@@ -147,7 +147,8 @@ public StateKeyGroupWriter getKeyGroupWriter() {
localKeySerializer.serialize(element.key, dov);
localStateSerializer.serialize(element.state, dov);
};
- StateSnapshotTransformer<S> stateSnapshotTransformer =
owningStateTable.metaInfo.getSnapshotTransformer();
+ StateSnapshotTransformer<S> stateSnapshotTransformer =
owningStateTable.metaInfo.
+
getStateSnapshotTransformFactory().createForDeserializedState().orElse(null);
Review comment:
The part below this line could be refactored to not check again if
`stateSnapshotTransformer != null`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services