Zakelly commented on a change in pull request #16153: URL: https://github.com/apache/flink/pull/16153#discussion_r654809893
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/state/CheckpointStorageLoader.java ########## @@ -175,21 +174,16 @@ public static CheckpointStorage load( CheckpointingOptions.SAVEPOINT_DIRECTORY, defaultSavepointDirectory.toString()); } - // Legacy state backends always take precedence for backwards compatibility. - StateBackend rootStateBackend = - (configuredStateBackend instanceof DelegatingStateBackend) - ? ((DelegatingStateBackend) configuredStateBackend) - .getDelegatedStateBackend() - : configuredStateBackend; - - if (rootStateBackend instanceof CheckpointStorage) { Review comment: You are right. This should not be removed. I made a mistake. I revert this change. Thanks a lot for pointing this out. -- 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