ChengJie1053 commented on code in PR #2948:
URL: 
https://github.com/apache/incubator-streampark/pull/2948#discussion_r1295339933


##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/AppBuildPipeServiceImpl.java:
##########
@@ -234,13 +235,21 @@ public void onStart(PipeSnapshot snapshot) {
               FsOperator fsOperator = app.getFsOperator();
               fsOperator.delete(appHome);
               if (app.isUploadJob()) {
+                String uploadJar = appUploads.concat("/").concat(app.getJar());
                 File localJar =
                     new File(
                         String.format(
                             "%s/%d/%s",
                             Workspace.local().APP_UPLOADS(), app.getTeamId(), 
app.getJar()));
+                if (!localJar.exists()) {
+                  Resource resource =
+                      resourceService.findByResourceName(app.getTeamId(), 
app.getJar());
+                  if (resource != null && 
StringUtils.isNotBlank(resource.getResourcePath())) {
+                    localJar = new 
File(resource.getResourcePath().split(":")[1]);
+                    uploadJar = 
appUploads.concat("/").concat(localJar.getName());

Review Comment:
   Ok, thanks for reviewing the code



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