gaborgsomogyi commented on code in PR #30167:
URL: https://github.com/apache/flink/pull/30167#discussion_r4718529379


##########
flink-runtime/src/main/java/org/apache/flink/runtime/state/StateBackend.java:
##########
@@ -199,8 +198,6 @@ interface KeyedStateBackendParameters<K> {
          */
         KeyGroupRange getKeyGroupRange();
 

Review Comment:
   I've considered this in-depth and I would personally drop it now since one 
day it'll be gone.
   It is `@PublicEvolving` and was never deprecated, but it only serves 
Queryable State:
   - FLINK-33697 only moved the existing `TaskKvStateRegistry` argument of 
`createKeyedStateBackend` into the parameter object
   - the registry and that argument come from the QS work (FLINK-3779, 2016), 
and the Javadoc of `KvStateRegistry` says "This is currently only used for 
KvState queries"
   - the only state backend code acting on it publishes state when 
`stateDescriptor.isQueryable()` and calls `unregisterAll()` on dispose
   
   The practical limitation if we drop it now is that with 2.5 custom state 
backends must be recompiled.
   @rmetzger Is it OK to remove it together with the feature, or do you want it 
kept as a `@Deprecated` no-op until 2.7 per FLIP-321 (I can add that commit)?
   



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