banmoy opened a new pull request #8611: [FLINK-12692][state] Store state per key-group in CopyOnWriteStateTable URL: https://github.com/apache/flink/pull/8611 ## What is the purpose of the change Extract the customized hash-map out of `CopyOnWriteStateTable` as `CopyOnWriteStateMap`, and store states in `CopyOnWriteStateMap` by key-group. This PR is prepared for [FLINK-12692](https://issues.apache.org/jira/browse/FLINK-12692). ## Brief change log - Extract the customized hash-map out of `CopyOnWriteStateTable` as `CopyOnWriteStateMap` - `CopyOnWriteStateTable` partitions states into different `CopyOnWriteStateMap`s by key-group - A snapshot of `CopyOnWriteStateTable` is still a `CopyOnWriteStateTableSnapshot`, but it is a composite of multiple `CopyOnWriteStateMapSnapshot`s which are snapshots of `CopyOnWriteStateMap`s, and there is no need to partition states into key-groups when snapshotting ## Verifying this change This change reuse the tests in `CopyOnWriteStateTableTest `. ## 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, Yarn/Mesos, ZooKeeper: (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)
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
