zuston commented on a change in pull request #18306:
URL: https://github.com/apache/flink/pull/18306#discussion_r785844211



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/LocalRecoveryConfig.java
##########
@@ -58,4 +63,24 @@ public String toString() {
                 + localStateDirectories
                 + '}';
     }
+
+    /**
+     * An {@link NullOfDirProviderException} is thrown when the {@link
+     * LocalRecoveryDirectoryProvider} is null.
+     */
+    @Internal
+    public static class NullOfDirProviderException extends RuntimeException {
+        public NullOfDirProviderException(String message, Throwable cause) {
+            super(message, cause);
+        }
+
+        public NullOfDirProviderException(String message) {
+            super(message);
+        }
+
+        public NullOfDirProviderException() {
+            this(
+                    "When task local recovery is enabled, the 
NullPointerException of LocalRecoveryDirectoryProvider should not happen.");
+        }
+    }

Review comment:
       👍




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