You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/03/14 13:45:32 UTC

[GitHub] [flink] akalash commented on a change in pull request #19081: [FLINK-26106][runtime] State change log storage is always 'filesystem…

akalash commented on a change in pull request #19081:
URL: https://github.com/apache/flink/pull/19081#discussion_r825961519



##########
File path: flink-runtime/src/test/java/org/apache/flink/runtime/testutils/MiniClusterResource.java
##########
@@ -253,12 +265,44 @@ private void startMiniCluster() throws Exception {
      * TaskManagerConf. Configurations which relates to streaming should be randomized in
      * TestStreamEnvironment#randomizeConfiguration.
      */
-    private static void randomizeConfiguration(Configuration configuration) {
+    private void randomizeConfiguration(Configuration configuration) throws IOException {
         // randomize ITTests for enabling buffer de-bloating
         if (RANDOMIZE_BUFFER_DEBLOAT_CONFIG
                 && !configuration.contains(TaskManagerOptions.BUFFER_DEBLOAT_ENABLED)) {
             randomize(configuration, TaskManagerOptions.BUFFER_DEBLOAT_ENABLED, true, false);
         }
+
+        // randomize ITTests for enabling state change log
+        if (isConfigurationSupportedByChangelog(configuration)) {
+            if (STATE_CHANGE_LOG_CONFIG.equalsIgnoreCase(STATE_CHANGE_LOG_CONFIG_ON)) {
+                if (!configuration.contains(ENABLE_STATE_CHANGE_LOG)) {
+                    configuration.set(ENABLE_STATE_CHANGE_LOG, true);
+                }
+            } else if (STATE_CHANGE_LOG_CONFIG.equalsIgnoreCase(STATE_CHANGE_LOG_CONFIG_RAND)) {
+                if (randomize(configuration, ENABLE_STATE_CHANGE_LOG, true, false)) {

Review comment:
       The disadvantage of having the randomization here instead of [TestStreamEnvironment.java] is to randomize only once for one test class while TestStreamEnvironment randomizes for each test independently.




-- 
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-unsubscribe@flink.apache.org

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