flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject flink git commit: [hotfix] Add try-catch around test tearDown
Date Mon, 08 Aug 2016 09:34:53 GMT
Repository: flink
Updated Branches:
  refs/heads/master ff777084b -> 27232fe32


[hotfix] Add try-catch around test tearDown

https://s3.amazonaws.com/archive.travis-ci.org/jobs/150069581/log.txt


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/27232fe3
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/27232fe3
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/27232fe3

Branch: refs/heads/master
Commit: 27232fe32884e339c907a2c644d00e3dda055cec
Parents: ff77708
Author: Ufuk Celebi <uce@apache.org>
Authored: Mon Aug 8 11:33:07 2016 +0200
Committer: Ufuk Celebi <uce@apache.org>
Committed: Mon Aug 8 11:34:42 2016 +0200

----------------------------------------------------------------------
 .../recovery/JobManagerHACheckpointRecoveryITCase.java  | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/27232fe3/flink-tests/src/test/java/org/apache/flink/test/recovery/JobManagerHACheckpointRecoveryITCase.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/recovery/JobManagerHACheckpointRecoveryITCase.java
b/flink-tests/src/test/java/org/apache/flink/test/recovery/JobManagerHACheckpointRecoveryITCase.java
index 262f78a..f66e52c 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/recovery/JobManagerHACheckpointRecoveryITCase.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/recovery/JobManagerHACheckpointRecoveryITCase.java
@@ -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) {
 		}
 	}
 


Mime
View raw message