Skip to content

Commit 0653b6c

Browse files
author
niumy
committed
[Improvement-17724][TaskPlugin] EmrTask resource leak repair
1 parent 8152804 commit 0653b6c

File tree

1 file changed

+1
-2
lines changed
  • dolphinscheduler-task-plugin/dolphinscheduler-task-emr/src/main/java/org/apache/dolphinscheduler/plugin/task/emr

1 file changed

+1
-2
lines changed

dolphinscheduler-task-plugin/dolphinscheduler-task-emr/src/main/java/org/apache/dolphinscheduler/plugin/task/emr/AbstractEmrTask.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ public void handle(TaskCallBack taskCallBack) throws TaskException {
119119

120120
// keep tracking application status
121121
trackApplicationStatus();
122-
} catch (Exception e) {
123-
throw new RuntimeException(e);
124122
} finally {
123+
// shutdown emrclient
125124
if (emrClient != null) {
126125
emrClient.shutdown();
127126
}

0 commit comments

Comments
 (0)