HDFS-12264. DataNode uses a deprecated method IoUtils#cleanup. Contributed by Ajay Yadav.

This commit is contained in:
Arpit Agarwal 2017-08-07 15:05:10 -07:00
parent adb84f34db
commit bc206806da

View File

@ -293,7 +293,7 @@ public static void cleanupWithLogger(Logger logger,
*/ */
public static void closeStream(java.io.Closeable stream) { public static void closeStream(java.io.Closeable stream) {
if (stream != null) { if (stream != null) {
cleanup(null, stream); cleanupWithLogger(null, stream);
} }
} }