fredia commented on code in PR #24678:
URL: https://github.com/apache/flink/pull/24678#discussion_r1574075445


##########
flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/ProcessOperator.java:
##########
@@ -46,6 +46,12 @@ public ProcessOperator(OneInputStreamProcessFunction<IN, 
OUT> userFunction) {
         chainingStrategy = ChainingStrategy.ALWAYS;
     }
 
+    @Override
+    public boolean isAsyncStateProcessingEnabled() {
+        // For normal operator (without keyed context) the async state 
processing is unused.

Review Comment:
   I was wondering if it would be better to just inherit async on 
`KeyedProcessOperator`/`KeyedTwoInputNonBroadcastProcessOperator`/`KeyedTwoInputBroadcastProcessOperator`/`KeyedTwoOutputProcessOperator`?
   
   BTW, should we offer an `toAsync()` method in `KeyedPartitionStream`?
   which allows users to set the execution modes of different operators in a 
fine-grained manner.



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