HDFS-12264. DataNode uses a deprecated method IoUtils#cleanup. Contributed by Ajay Yadav.
This commit is contained in:
parent
adb84f34db
commit
bc206806da
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user