tweise commented on a change in pull request #7249: [FLINK-11048] Ability to 
programmatically execute streaming pipeline with savepoint restore
URL: https://github.com/apache/flink/pull/7249#discussion_r241037567
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/RemoteStreamEnvironment.java
 ##########
 @@ -283,6 +275,14 @@ public JobExecutionResult execute(String jobName) throws 
ProgramInvocationExcept
                return executeRemotely(streamGraph, jarFiles);
        }
 
+       /**
+        * Execute the job with savepoint restore.
+        */
+       public JobExecutionResult execute(String jobName, 
SavepointRestoreSettings savepointRestoreSettings) throws 
ProgramInvocationException {
+               this.savepointRestoreSettings = savepointRestoreSettings;
+               return execute(jobName);
 
 Review comment:
   I don't want to repeat what is already done in `execute` and 
`executeRemotely`. The member variable is an implementation detail that does 
not concern the interface contract and, as mentioned, all other execution 
parameters are already derived from the instance. (BTW execute is a one-time 
operation with side effect - it clears the transformations.)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

Reply via email to