Skip to content

Commit

Permalink
[FLINK-9214] [tests, yarn] YarnClient should be stopped in YARNSessio…
Browse files Browse the repository at this point in the history
…nCapacitySchedulerITCase#testDetachedPerJobYarnClusterInternal

This closes apache#5892
  • Loading branch information
yanghua authored and StephanEwen committed Apr 30, 2018
1 parent 07aa2d4 commit bd8cb86
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,12 @@ public boolean accept(File dir, String name) {
LOG.warn("testDetachedPerJobYarnClusterInternal: Exception while deleting the JobManager address file", e);
}

try {
LOG.info("testDetachedPerJobYarnClusterInternal: Closing the yarn client");
yc.stop();
} catch (Exception e) {
LOG.warn("testDetachedPerJobYarnClusterInternal: Exception while close the yarn client", e);
}
}
}

Expand Down

0 comments on commit bd8cb86

Please sign in to comment.