zentol commented on a change in pull request #16879:
URL: https://github.com/apache/flink/pull/16879#discussion_r691876343



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/CheckpointStorageLoader.java
##########
@@ -187,27 +187,44 @@ public static CheckpointStorage load(
                 logger.info(
                         "Using legacy state backend {} as Job checkpoint 
storage",
                         rootStateBackend);
+                if (fromApplication != null) {
+                    logger.warn(
+                            "Checkpoint storage passed via 
StreamExecutionEnvironment is ignored because the legacy state backend '{}' is 
used instead.",

Review comment:
       That's not _really_ an explanation for why the passed checkpoint storage 
is ignored.
   If I read this I immediately wonder why the legacy state backend is used 🤷 
   
   The fact that legacy state backends take precedence would be a good hint, 
i.e., `[-...]because the legacy state backend '{}' is configured which takes 
precedence.`
   

##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/CheckpointStorageLoader.java
##########
@@ -187,27 +187,44 @@ public static CheckpointStorage load(
                 logger.info(
                         "Using legacy state backend {} as Job checkpoint 
storage",
                         rootStateBackend);
+                if (fromApplication != null) {
+                    logger.warn(
+                            "Checkpoint storage passed via 
StreamExecutionEnvironment is ignored because the legacy state backend '{}' is 
used instead.",
+                            rootStateBackend.getClass());
+                }
+                if (config.get(CheckpointingOptions.CHECKPOINT_STORAGE) != 
null) {
+                    logger.warn(
+                            "Config option '{}' is ignored because the legacy 
state backend '{}' is used instead.",

Review comment:
       same as above




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