You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Zhu Zhu (Jira)" <ji...@apache.org> on 2022/10/27 09:06:00 UTC

[jira] [Commented] (FLINK-28697) MapDataSerializer doesn't declare a serialVersionUID

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

Zhu Zhu commented on FLINK-28697:
---------------------------------

Thanks for reporting this problem and opening a PR to fix it. [~jmahonin]
I think not only `MapDataSerializer`, but also some other serializable classes may encounter this kind of problems when using different java versions at different sides. This means the pull request does not fully fix this kind of problems. Also, developing and running jobs with different java versions may introduce other potential incompatible problems.
I think we should use the same java version to develop, compile and run Flink jobs. And, with this assumption, the reported problem is not needed to be fixed.

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