LadyForest opened a new pull request, #22593:
URL: https://github.com/apache/flink/pull/22593
## What is the purpose of the change
This PR is a subtask of FLIP-292 to enable operator-level state TTL
configuration via `CompiledPlan`.
## Brief change log
Introduce `StateMetadata` to all `ExecNode`s that translate to stateful
operators, and changes the way how `#translateToPlanInternal` get the state
retention time.
The affected `ExecNode` list
```
StreamExecChangelogNormalize
StreamExecDeduplicate
StreamExecGlobalGroupAggregate
StreamExecGroupAggregate
StreamExecIncrementalGroupAggregate
StreamExecJoin
StreamExecLimit
StreamExecLookupJoin
StreamExecRank
StreamExecSink
StreamExecSortLimit
```
## Verifying this change
Since we have upgraded some `ExecNode`s to version 2, we have to test the
following 3 parts:
1. The plan serialized using version 1 can be deserialized using the current
version. This can be verified by `TransformationsTest#testUidFlink1_15`
2. The plan with the current version SerDe work as expected. This can be
verified by all tests under package
`org.apache.flink.table.planner.plan.nodes.exec.stream`
3. The way by modifying the JSON content to change state TTL works as
expected. This can be verified by ITCase
`ConfigureOperatorLevelStateTtlJsonITCase`
## 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: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduces a new feature? yes
- If yes, how is the feature documented? FLINK-31957
--
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]