yangjunsen opened a new pull request, #29615: URL: https://github.com/apache/flink/pull/29615
## What is the purpose of the change This PR addresses FLINK-40812 and backports the fix from FLINK-38558 to release-1.20. It disables mutable KV state reuse when RocksDB uses heap timers to prevent buffered window keys from being overwritten. ## Brief change log - Disable mutable KV state reuse when RocksDB uses heap timers. - Add regression coverage for mutable state reuse. - Add an integration test for cumulative-window distinct aggregation. ## Verifying this change This change added tests and can be verified as follows: - Extended RocksDB keyed-state backend tests to cover mutable state reuse. - Added `RocksDBHeapTimerWindowDistinctAggregateITCase` to reproduce and verify cumulative-window distinct aggregation with RocksDB state and heap timers. ## 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): yes - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: don't know - 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 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: GPT-5.6 Sol -- 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]
