spuru9 opened a new pull request, #29156:
URL: https://github.com/apache/flink/pull/29156
## What is the purpose of the change
`CalcRestoreTest.testRestore` (the `calc-variant` program) fails on `master`
because the checked-in restore savepoint no longer deserializes:
```
java.io.InvalidClassException: org.apache.flink.types.variant.Variant; local
class incompatible: stream classdesc serialVersionUID = -1858271569023660977,
local class serialVersionUID = -3681789473927144047
```
`org.apache.flink.types.variant.Variant` is a `Serializable` interface
without an explicit `serialVersionUID`, so its auto-generated UID changes
whenever its declared method set changes. A new accessor method was added to
the interface after the `calc-variant` savepoint was last generated, which
shifted the UID and invalidated the checked-in savepoint.
This regenerates the `calc-variant` savepoint against the current `Variant`.
The compiled plan is unchanged.
## Brief change log
- Regenerate
`flink-table/flink-table-planner/src/test/resources/restore-tests/stream-exec-calc_1/calc-variant/savepoint/_metadata`.
## Verifying this change
- `CalcRestoreTest#testRestore` passes (10 tests, 0 failures / 0 errors)
with the regenerated savepoint.
- With the previous savepoint it fails on the `calc-variant` program with
the `InvalidClassException` above; regenerating resolves it.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): **no**
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: **no**
- The serializers: **no**
- The runtime per-record code paths (performance sensitive): **no**
- Anything that affects deployment or recovery: **no**
- The S3 file system connector: **no**
## Documentation
- Does this pull request introduce a new feature? **no**
- If yes, how is the feature documented? **not applicable**
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]