Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1-win, 2.1.0-beta, 3.0.0-alpha1
-
None
-
None
-
Reviewed
Description
In FileUtil.unTarUsingJava() method, we did not close input steams explicitly upon finish. This could lead to a file handle leak on Windows.
I discovered this when investigating the unit test case failure of TestFSDownload.testDownloadArchive(). FSDownload class will use FileUtil.unTarUsingJava() to unpack some temporary archive file. Later, the temporary file should be deleted. Because of the file handle leak, the File.delete() method fails. The test case then fails because it assert the temporary file should not exist.
Attachments
Attachments
Issue Links
- is part of
-
HADOOP-8562 Enhancements to support Hadoop on Windows Server and Windows Azure environments
- Closed
- relates to
-
YARN-597 TestFSDownload fails on Windows because of dependencies on tar/gzip/jar tools
- Closed