HDFS-7583. Fix findbug in TransferFsImage.java (Contributed by Vinayakumar B)
This commit is contained in:
parent
9803ae374f
commit
4cd66f7fb2
|
@ -642,6 +642,8 @@ Release 2.7.0 - UNRELEASED
|
||||||
HDFS-7572. TestLazyPersistFiles#testDnRestartWithSavedReplicas is flaky on
|
HDFS-7572. TestLazyPersistFiles#testDnRestartWithSavedReplicas is flaky on
|
||||||
Windows. (Arpit Agarwal via cnauroth)
|
Windows. (Arpit Agarwal via cnauroth)
|
||||||
|
|
||||||
|
HDFS-7583. Fix findbug in TransferFsImage.java (vinayakumarb)
|
||||||
|
|
||||||
Release 2.6.1 - UNRELEASED
|
Release 2.6.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -574,10 +574,11 @@ public class TransferFsImage {
|
||||||
|
|
||||||
LOG.info("Deleting temporary files: " + files);
|
LOG.info("Deleting temporary files: " + files);
|
||||||
for (File file : 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) {
|
private static MD5Hash parseMD5Header(HttpURLConnection connection) {
|
||||||
String header = connection.getHeaderField(MD5_HEADER);
|
String header = connection.getHeaderField(MD5_HEADER);
|
||||||
|
|
Loading…
Reference in New Issue