masteryhx commented on code in PR #25135:
URL: https://github.com/apache/flink/pull/25135#discussion_r1703812477


##########
flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStValueState.java:
##########
@@ -87,8 +93,10 @@ public byte[] serializeKey(ContextKey<K, N> contextKey) 
throws IOException {
                 ctxKey -> {
                     SerializedCompositeKeyBuilder<K> builder = 
serializedKeyBuilder.get();
                     builder.setKeyAndKeyGroup(ctxKey.getRawKey(), 
ctxKey.getKeyGroup());
+                    N namespace = contextKey.getNamespace(this);

Review Comment:
   Coud we just mark ContextKey#getNamespace is Nonnull, and it will return 
VoidNamespace if null ?
   Then we could avoid introducing a new parameter in the 
`AsyncKeyedStateBackend`.
   Or Will we support other default namespace ?



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