gaborgsomogyi opened a new pull request, #30167:
URL: https://github.com/apache/flink/pull/30167

   ## What is the purpose of the change
   
   Queryable State has been deprecated since Flink 1.18 
([FLINK-32559](https://issues.apache.org/jira/browse/FLINK-32559)) and its 
documentation was already removed back then. This pull request removes the 
feature itself: the client and runtime modules, the KvState registry and 
location tracking that the JobManager, the TaskManagers and the state backends 
kept for it, and the user facing API.
   
   ## Brief change log
   
   The change is split into four commits that each build. The API removal is 
the last one, so it can be reviewed on its own. 103 of the 216 changed files 
are deletions.
   
     - Remove the end-to-end tests of Queryable State, the `queryable-state.*` 
settings of the shared e2e configuration and the `query` port of the job 
cluster template
     - Stop shipping `flink-queryable-state-runtime` in `opt/` and remove the 
queryable state modules from the CI module list
     - Remove the modules `flink-queryable-state-client-java` and 
`flink-queryable-state-runtime`
     - Remove the KvState registry and location tracking: `JobMasterGateway` 
and `SchedulerNG` (default and adaptive scheduler) lose 
`requestKvStateLocation`, `notifyKvStateRegistered` and 
`notifyKvStateUnregistered`, `ExecutionGraph#getKvStateLocationRegistry` and 
`Environment#getTaskKvStateRegistry` are removed, and the `TaskExecutor` no 
longer creates a `KvStateService`
     - Remove the registry argument of the heap, RocksDB and ForSt keyed state 
backends and their builders, and `InternalKvState#getSerializedValue` with all 
its implementations, which only served the queryable state server
     - Remove the user facing API: `StateDescriptor#setQueryable`, 
`#getQueryableStateName` and `#isQueryable`, `KeyedStream#asQueryableState`, 
`QueryableStateStream`, the three queryable state operators and 
`QueryableStateOptions` (`queryable-state.*`)
     - Delete the tests of the feature and drop the registry from the tests 
that only needed one to build a state backend
   
   
   ## Verifying this change
   
   This change is already covered by existing tests, such as 
`StateBackendTestBase` and its subclasses (heap, RocksDB, changelog), the 
adaptive scheduler state tests, `TaskTest`, `SequencedMultiSetStateTest`, the 
state processor API tests, the architecture tests, and 
`TypeSerializerTestCoverageTest` and `TypeInfoTestCoverageTest` (which no 
longer need an exclusion for the removed `queryablestate` classes).
   
   The tests of the removed feature are deleted: the tests and ITCases of the 
two modules, `JobMasterQueryableStateTest`, `KvStateRegistryTest`, 
`KvStateLocationTest`, `KvStateLocationRegistryTest`, and `testValueStateRace`, 
`testQueryableStateRegistration` and `testConcurrentMapIfQueryable` in 
`StateBackendTestBase`.
   
   Checked locally:
     - The state tests of `flink-runtime` (1,413 tests) were run on master and 
on this branch with the same settings: the only tests that disappear are the 
ones of the removed feature, and every other test keeps its result. The tests 
that the changelog module inherits from `StateBackendTestBase` lose the same 
ones.
     - `package` builds the whole reactor except the three archetype modules 
(quickstart and walkthroughs), which need network access. `opt/` of 
`flink-dist` no longer contains `flink-queryable-state-runtime`.
     - Checkstyle and spotless pass on the touched modules, japicmp for 
`flink-core` and `flink-runtime` against 2.3.0 reports no incompatible change, 
and `ArchitectureTest` passes with the violation store as committed (the only 
change to it is dropping the `getKvStateRegistry` entry).
   
   Not run locally, so left to CI: the ITCases, the end-to-end scripts, 
`TaskExecutorTest`, `AdaptiveSchedulerTest`, the streaming task tests and the 
ForSt tests.
   
   ## 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)`: yes. It removes the deprecated Queryable State API 
(`StateDescriptor#setQueryable`, `#getQueryableStateName` and `#isQueryable`, 
`KeyedStream#asQueryableState`, `QueryableStateStream`, 
`QueryableStateOptions`) and 
`StateBackend.KeyedStateBackendParameters#getKvStateRegistry`. User code that 
calls them no longer compiles, custom state backends have to drop the registry, 
and the `queryable-state.*` options are no longer read.
     - The serializers: no. No state or snapshot format changes, and 
`StateDescriptor` keeps its explicit `serialVersionUID` after losing a field.
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: yes. The JobMaster, the 
schedulers and the `TaskExecutor` lose the queryable state registration. The 
feature was off by default (`queryable-state.enable: false`), so jobs that did 
not use it behave as before.
     - 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: Claude Code 2.1.322 (Claude Sonnet 5.5)
   


-- 
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]

Reply via email to