From bc206806dadc5dc85f182d98d859307cfb33172b Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Mon, 7 Aug 2017 15:05:10 -0700 Subject: [PATCH] HDFS-12264. DataNode uses a deprecated method IoUtils#cleanup. Contributed by Ajay Yadav. --- .../src/main/java/org/apache/hadoop/io/IOUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java index 15744310ea..46ea1c8825 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java @@ -293,7 +293,7 @@ public static void cleanupWithLogger(Logger logger, */ public static void closeStream(java.io.Closeable stream) { if (stream != null) { - cleanup(null, stream); + cleanupWithLogger(null, stream); } }