apache / apache/hudi

Serializable interface implementation don't explicitly declare serialVersionUID

Open
#15,691 3 comments 0 reactions 1 assignee Claimed by @cshuo View on GitHub
engine:flink from-jira priority:high status:pr-available type:improvement
Dominant language
Java
Stars
6.2k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
111

Description

Serializable interface implementation don't explicitly declare serialVersionUID, which causes the InvalidClassException for the deserialization. Serializable interface implementation should explicitly declare serialVersionUID for all the implementation including their subclass implementation.

## JIRA info

- Link: https://issues.apache.org/jira/browse/HUDI-5558
- Type: Improvement

---

## Comments

20/Jan/23 20:23;alexey.kudinkin;This is not correct: we should not be overriding `serialVersionUID` – mismatching `serialVersionUID`s means that class has changed and it might not be safe to assume that you can safely deserialize serialized representation of the older version of the class.

What's exact issue you're trying to solve here?;;;

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.