klion26 commented on a change in pull request #10344: 
[FLINK-14264][StateBackend][Rest] Expose state backend in checkpoint rest api
URL: https://github.com/apache/flink/pull/10344#discussion_r352405508
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/job/checkpoints/CheckpointConfigHandler.java
 ##########
 @@ -100,13 +100,15 @@ private static CheckpointConfigInfo 
createCheckpointConfigInfo(AccessExecutionGr
                                        retentionPolicy != 
CheckpointRetentionPolicy.NEVER_RETAIN_AFTER_TERMINATION,
                                        retentionPolicy != 
CheckpointRetentionPolicy.RETAIN_ON_CANCELLATION);
 
+                       String stateName = 
checkpointCoordinatorConfiguration.getStateBackendName() == null ? 
"TEMPORARY_UNKNOWN" : checkpointCoordinatorConfiguration.getStateBackendName();
 
 Review comment:
   @zentol Thanks for the clarification. Before I submit the PR, I tried a few 
times to query the rest before job submitted, but the job submitting duration 
holds too small, all end up with a running job.
   Maybe we should add a `checkNotNull` here for `stateBackendName`, what do 
you think.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to