HDFS-7583. Fix findbug in TransferFsImage.java (Contributed by Vinayakumar B)

This commit is contained in:
Vinayakumar B 2015-01-06 09:31:35 +05:30
parent 9803ae374f
commit 4cd66f7fb2
2 changed files with 5 additions and 2 deletions

View File

@ -642,6 +642,8 @@ Release 2.7.0 - UNRELEASED
HDFS-7572. TestLazyPersistFiles#testDnRestartWithSavedReplicas is flaky on
Windows. (Arpit Agarwal via cnauroth)
HDFS-7583. Fix findbug in TransferFsImage.java (vinayakumarb)
Release 2.6.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -574,11 +574,12 @@ public class TransferFsImage {
LOG.info("Deleting temporary files: " + files);
for (File file : files) {
file.delete(); // ignore the return value
if (!file.delete()) {
LOG.warn("Deleting " + file + " has failed");
}
}
}
private static MD5Hash parseMD5Header(HttpURLConnection connection) {
String header = connection.getHeaderField(MD5_HEADER);
return (header != null) ? new MD5Hash(header) : null;