You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Liu (Jira)" <ji...@apache.org> on 2026/04/01 09:16:00 UTC

[jira] [Created] (FLINK-39375) Add explicit serialVersionUID to WatermarkAlignmentParams

Liu created FLINK-39375:
---------------------------

             Summary: Add explicit serialVersionUID to WatermarkAlignmentParams
                 Key: FLINK-39375
                 URL: https://issues.apache.org/jira/browse/FLINK-39375
             Project: Flink
          Issue Type: Improvement
            Reporter: Liu


{{WatermarkAlignmentParams}} implements {{Serializable}} but does not declare an explicit {{{}serialVersionUID{}}}.

Without an explicit {{{}serialVersionUID{}}}, the JVM auto-generates one based on the class structure (fields, methods, etc.). If the class is modified in a future release — even with a minor, non-breaking change — the auto-generated UID will change, causing {{InvalidClassException}} during deserialization.

This is particularly problematic in Flink because {{WatermarkAlignmentParams}} may be serialized as part of job graphs and checkpoints/savepoints. A changed UID would prevent users from restoring savepoints taken on a prior version after upgrading Flink, breaking savepoint compatibility.

Additionally, the class is annotated with {{{}@PublicEvolving{}}}, which means it is part of Flink's public API and should maintain backward compatibility.



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