You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2016/12/02 11:36:47 UTC

[2/2] flink git commit: [hotfix] IOUtils.closeQuietly() closes absolutely quietly.

[hotfix] IOUtils.closeQuietly() closes absolutely quietly.


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

Branch: refs/heads/master
Commit: a2cb5df22c105868bbdbd435e8fed56e8bf02a23
Parents: 2fcef5e
Author: Stephan Ewen <se...@apache.org>
Authored: Thu Dec 1 17:05:47 2016 +0100
Committer: Stephan Ewen <se...@apache.org>
Committed: Fri Dec 2 12:29:02 2016 +0100

----------------------------------------------------------------------
 flink-core/src/main/java/org/apache/flink/util/IOUtils.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/a2cb5df2/flink-core/src/main/java/org/apache/flink/util/IOUtils.java
----------------------------------------------------------------------
diff --git a/flink-core/src/main/java/org/apache/flink/util/IOUtils.java b/flink-core/src/main/java/org/apache/flink/util/IOUtils.java
index 9810271..11c06a8 100644
--- a/flink-core/src/main/java/org/apache/flink/util/IOUtils.java
+++ b/flink-core/src/main/java/org/apache/flink/util/IOUtils.java
@@ -215,14 +215,15 @@ public final class IOUtils {
 		}
 	}
 
+	/**
+	 * <p><b>Important:</b> This method is expected to never throw an exception.
+	 */
 	public static void closeQuietly(Closeable closeable) {
 		try {
 			if (closeable != null) {
 				closeable.close();
 			}
-		} catch (IOException ignored) {
-
-		}
+		} catch (Throwable ignored) {}
 	}
 	
 	// ------------------------------------------------------------------------