RocMarshal commented on code in PR #130:
URL: 
https://github.com/apache/flink-connector-jdbc/pull/130#discussion_r1645289417


##########
flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/source/split/JdbcSourceSplitSerializer.java:
##########
@@ -106,7 +106,7 @@ public JdbcSourceSplit 
deserializeJdbcSourceSplit(DataInputStream in)
         byte[] chkOffsetBytes = new byte[chkOffsetBytesLen];
         in.read(chkOffsetBytes);
         CheckpointedOffset chkOffset =
-                InstantiationUtil.deserializeObject(chkOffsetBytes, 
in.getClass().getClassLoader());
+                InstantiationUtil.deserializeObject(chkOffsetBytes, 
CheckpointedOffset.class.getClassLoader());

Review Comment:
   Thanks @jan-osc for the pr.
   Would you like to add a test case for the fix ?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to