rkhachatryan commented on a change in pull request #16685:
URL: https://github.com/apache/flink/pull/16685#discussion_r682324509



##########
File path: 
flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/streaming/util/TestStreamEnvironment.java
##########
@@ -92,10 +94,18 @@ public static void setAsContext(
                                 Duration.ofSeconds(2));
                     }
                     if 
(STATE_CHANGE_LOG_CONFIG.equalsIgnoreCase(STATE_CHANGE_LOG_CONFIG_ON)) {
-                        conf.set(CheckpointingOptions.ENABLE_STATE_CHANGE_LOG, 
true);
+                        if 
(isConfigurationSupportedByChangelog(miniCluster.getConfiguration())) {
+                            
conf.set(CheckpointingOptions.ENABLE_STATE_CHANGE_LOG, true);
+                        }
                     } else if (STATE_CHANGE_LOG_CONFIG.equalsIgnoreCase(
                             STATE_CHANGE_LOG_CONFIG_RAND)) {
-                        randomize(conf, 
CheckpointingOptions.ENABLE_STATE_CHANGE_LOG, true, false);
+                        if 
(isConfigurationSupportedByChangelog(miniCluster.getConfiguration())) {
+                            randomize(
+                                    conf,
+                                    
CheckpointingOptions.ENABLE_STATE_CHANGE_LOG,
+                                    true,
+                                    false);
+                        }

Review comment:
       Good point, but local recovery currently can only be enabled in the 
cluster configuration.




-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to