Skip to content

Commit

Permalink
[Bug]Fix jar of flink app with task dependencies can be successfully …
Browse files Browse the repository at this point in the history
…deleted (#4126)
  • Loading branch information
Happy-shi authored Nov 2, 2024
1 parent 3a44fe0 commit 2b60a65
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,13 @@ private List<FlinkApplication> getResourceApplicationsById(Resource resource) {
.collect(Collectors.toMap(FlinkApplication::getId, application -> application));

// Get the application that depends on this resource
for (FlinkApplication app : applications) {
if (resource.getResourceName().equals(app.getJar())
&& !dependApplications.contains(app)) {
dependApplications.add(app);
}
}

List<FlinkSql> flinkSqls = flinkSqlService.listByTeamId(resource.getTeamId());
for (FlinkSql flinkSql : flinkSqls) {
String sqlTeamResource = flinkSql.getTeamResource();
Expand Down

0 comments on commit 2b60a65

Please sign in to comment.