kezhuw commented on a change in pull request #15397:
URL: https://github.com/apache/flink/pull/15397#discussion_r602977665
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/source/coordinator/SplitAssignmentTracker.java
##########
@@ -83,10 +86,8 @@ public void snapshotState(
*/
public void restoreState(SimpleVersionedSerializer<SplitT>
splitSerializer, DataInputStream in)
throws Exception {
Review comment:
It is also a good to read out and drop possible empty state. This will
protect any future trailing state reader. But I guess in that stage, there will
be a version bump to `SourceCoordinatorSerdeUtils.CURRENT_VERSION`. So I am
neutral to this, just a preference to match write side.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]