curcur commented on a change in pull request #14943: URL: https://github.com/apache/flink/pull/14943#discussion_r588273507
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/state/StateBackendLoader.java ########## @@ -173,6 +186,22 @@ public static StateBackend loadStateBackendFromConfig( } } + public static StateBackend loadWrappedStateBackendFromConfig( + ReadableConfig config, ClassLoader classLoader, @Nullable Logger logger) + throws IllegalConfigurationException, DynamicCodeLoadingException, IOException { + + checkNotNull(config, "config"); + checkNotNull(classLoader, "classLoader"); + + final StateBackend backend = loadStateBackendFromConfig(config, classLoader, logger); + + if (config.get(CheckpointingOptions.ENABLE_STATE_CHANGE_LOG)) { + return loadChangelogStateBackend(backend, classLoader); Review comment: sync-up offline, will add a pre-check instead. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org