You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2022/11/23 06:47:00 UTC

[incubator-streampark] branch dev updated: [Bug] When stopping the application, if you want to savepoint and specify a custom savepoint path, the stop will fail (#2078)

This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git


The following commit(s) were added to refs/heads/dev by this push:
     new 7693a4078 [Bug] When stopping the application, if you want to savepoint and specify a custom savepoint path, the stop will fail (#2078)
7693a4078 is described below

commit 7693a4078efc3c47046d2303a6c0ba9e6d963732
Author: macksonmu <ma...@gmail.com>
AuthorDate: Wed Nov 23 14:46:52 2022 +0800

    [Bug] When stopping the application, if you want to savepoint and specify a custom savepoint path, the stop will fail (#2078)
    
    * [Bug] When stopping the application, if you want to savepoint and specify a custom savepoint path, the stop will fail #2074
    
    Co-authored-by: mucj7 <mu...@chinaunicom.cn>
---
 .../console/core/service/impl/ApplicationServiceImpl.java           | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/ApplicationServiceImpl.java b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/ApplicationServiceImpl.java
index c5bf1388f..716e231c6 100644
--- a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/ApplicationServiceImpl.java
+++ b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/ApplicationServiceImpl.java
@@ -1174,7 +1174,11 @@ public class ApplicationServiceImpl extends ServiceImpl<ApplicationMapper, Appli
 
     @Override
     public String checkSavepointPath(Application appParam) throws Exception {
-        String savepointPath = getSavePointPath(appParam);
+        String savepointPath = appParam.getSavePoint();
+        if (StringUtils.isBlank(savepointPath)) {
+            savepointPath = getSavePointPath(appParam);
+        }
+
         if (StringUtils.isNotBlank(savepointPath)) {
             final URI uri = URI.create(savepointPath);
             final String scheme = uri.getScheme();