HDFS-13714. Fix TestNameNodePrunesMissingStorages test failures on Windows. Contributed by Lukas Majercak.
This commit is contained in:
parent
fa9ef15ecd
commit
7296b644f7
@ -294,8 +294,9 @@ private static void rewriteVersionFile(File versionFile,
|
||||
in = null;
|
||||
out.close();
|
||||
out = null;
|
||||
newVersionFile.renameTo(versionFile);
|
||||
success = true;
|
||||
// Delete old version file
|
||||
success = versionFile.delete();
|
||||
success &= newVersionFile.renameTo(versionFile);
|
||||
} finally {
|
||||
if (in != null) {
|
||||
in.close();
|
||||
|
Loading…
Reference in New Issue
Block a user