HDFS-12264. DataNode uses a deprecated method IoUtils#cleanup. Contributed by Ajay Yadav.
This commit is contained in:
parent
e18415a350
commit
2906c494c5
@ -293,7 +293,9 @@ public static void cleanupWithLogger(Logger logger,
|
||||
* @param stream the Stream to close
|
||||
*/
|
||||
public static void closeStream(java.io.Closeable stream) {
|
||||
cleanup(null, stream);
|
||||
if (stream != null) {
|
||||
cleanupWithLogger(null, stream);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user