HDFS-13714. Fix TestNameNodePrunesMissingStorages test failures on Windows. Contributed by Lukas Majercak.
(cherry picked from commit 7296b644f7
)
This commit is contained in:
parent
8ffc191f61
commit
177ccbc43f
|
@ -294,8 +294,9 @@ public class TestNameNodePrunesMissingStorages {
|
||||||
in = null;
|
in = null;
|
||||||
out.close();
|
out.close();
|
||||||
out = null;
|
out = null;
|
||||||
newVersionFile.renameTo(versionFile);
|
// Delete old version file
|
||||||
success = true;
|
success = versionFile.delete();
|
||||||
|
success &= newVersionFile.renameTo(versionFile);
|
||||||
} finally {
|
} finally {
|
||||||
if (in != null) {
|
if (in != null) {
|
||||||
in.close();
|
in.close();
|
||||||
|
|
Loading…
Reference in New Issue