Github user aljoscha commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4232#discussion_r125034182
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionGraphBuilder.java
 ---
    @@ -223,19 +223,21 @@ public static ExecutionGraph buildGraph(
                        // if specified in the application, use from there, 
otherwise load from configuration
                        final StateBackend metadataBackend;
     
    -                   final StateBackend applicationConfiguredBackend = 
snapshotSettings.getDefaultStateBackend();
    +                   final SerializedValue<StateBackend> 
applicationConfiguredBackend = snapshotSettings.getDefaultStateBackend();
                        if (applicationConfiguredBackend != null) {
    -                           metadataBackend = applicationConfiguredBackend;
    +                           try {
    +                                   metadataBackend = 
applicationConfiguredBackend.deserializeValue(classLoader);
    +                           } catch (IOException | ClassNotFoundException 
e) {
    +                                   throw new JobExecutionException(jobId, 
"Could not instantiate configured state backend.", e);
    +                           }
     
                                log.info("Using application-defined state 
backend for checkpoint/savepoint metadata: {}.",
                                                applicationConfiguredBackend);
    --- End diff --
    
    Good catch!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to