jiexray commented on code in PR #25996:
URL: https://github.com/apache/flink/pull/25996#discussion_r1920956433


##########
flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/WindowWordCount.java:
##########
@@ -88,6 +93,12 @@ public static void main(String[] args) throws Exception {
         // available in the Flink UI.
         env.getConfig().setGlobalJobParameters(params);
 
+        if (params.isAsyncState()) {
+            Configuration config = 
Configuration.fromMap(env.getConfiguration().toMap());
+            config.set(StateBackendOptions.STATE_BACKEND, 
FORST_STATE_BACKEND_NAME);
+            env.configure(config);

Review Comment:
   Resolved, After change:
   ```
           // For async state, by default we will use the forst state backend.
           if (params.isAsyncState()) {
               Configuration config = 
Configuration.fromMap(env.getConfiguration().toMap());
               if 
(!config.containsKey(StateBackendOptions.STATE_BACKEND.key())) {
                   config.set(StateBackendOptions.STATE_BACKEND, 
FORST_STATE_BACKEND_NAME);
                   env.configure(config);
               }
           }
   ```



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