Skip to content

Commit

Permalink
[hotfix] Add try-catch around test tearDown
Browse files Browse the repository at this point in the history
  • Loading branch information
uce committed Aug 8, 2016
1 parent ff77708 commit 27232fe
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,16 @@ public class JobManagerHACheckpointRecoveryITCase extends TestLogger {

@AfterClass
public static void tearDown() throws Exception {
ZooKeeper.shutdown();
try {
ZooKeeper.shutdown();
} catch (Exception ignored) {
}

if (FileStateBackendBasePath != null) {
FileUtils.deleteDirectory(FileStateBackendBasePath);
try {
if (FileStateBackendBasePath != null) {
FileUtils.deleteDirectory(FileStateBackendBasePath);
}
} catch (IOException ignored) {
}
}

Expand Down

0 comments on commit 27232fe

Please sign in to comment.