[ 
https://issues.apache.org/jira/browse/FLINK-28697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17626992#comment-17626992
 ] 

Yun Tang commented on FLINK-28697:
----------------------------------

For checkpoints, it will use [MapDataSerializerSnapshot 
|https://github.com/apache/flink/blob/4e860b6a3e2b1cd2e36ca0dcb549a93c92430e1d/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/typeutils/MapDataSerializer.java#L250]
 to restore the MapDataSerializer instead of {{deserializeObject}}. Thus it 
would be safe for checkpoints.
However, we might have other places to deserialize, you can refer to 
FLINK-13910.

> MapDataSerializer doesn't declare a serialVersionUID
> ----------------------------------------------------
>
>                 Key: FLINK-28697
>                 URL: https://issues.apache.org/jira/browse/FLINK-28697
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Type Serialization System
>    Affects Versions: 1.15.1
>            Reporter: Josh Mahonin
>            Priority: Major
>              Labels: pull-request-available
>
> MapDataSerializer doesn't declare a serialVersionUID, which can manifest as a 
> InvalidClassException when attempting to serialize with different JREs for 
> compilation / runtime.
> {code:java}
> Caused by: java.io.InvalidClassException: 
> org.apache.flink.table.runtime.typeutils.MapDataSerializer; local class 
> incompatible: stream classdesc serialVersionUID = 2533002123505507000, local 
> class serialVersionUID = 1622156938509929811 {code}
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to