[
https://issues.apache.org/jira/browse/HADOOP-15458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16490061#comment-16490061
]
Xiao Liang commented on HADOOP-15458:
-------------------------------------
Thanks [[email protected]] and [~elgoiri] for the suggestion.
The "try(...)" approach works well in my local Windows machine for both
trunk([^HADOOP-15458.002.patch]) and
branch-2([^HADOOP-15458-branch-2.002.patch]), the test is passed. Please be
noted that I'm using Java 8 in my local Windows machine, the
"try-with-resources Statement" was introduced in Java 7, does it match the Java
version for branch-2?
> org.apache.hadoop.fs.TestLocalFileSystem#testFSOutputStreamBuilder fails on
> Windows
> -----------------------------------------------------------------------------------
>
> Key: HADOOP-15458
> URL: https://issues.apache.org/jira/browse/HADOOP-15458
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Xiao Liang
> Assignee: Xiao Liang
> Priority: Major
> Labels: windows
> Attachments: HADOOP-15458-branch-2.000.patch,
> HADOOP-15458-branch-2.001.patch, HADOOP-15458-branch-2.002.patch,
> HADOOP-15458.000.patch, HADOOP-15458.001.patch, HADOOP-15458.002.patch
>
>
> In *org.apache.hadoop.fs.TestLocalFileSystem#testFSOutputStreamBuilder* a
> FSDataOutputStream object is unnecessarily created and not closed, which
> makes org.apache.hadoop.fs.TestLocalFileSystem#after fails to delete the
> folder on Windows.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]