hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Mitic (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-9490) LocalFileSystem#reportChecksumFailure not closing the checksum file handle before rename
Date Sun, 21 Apr 2013 19:37:15 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-9490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ivan Mitic updated HADOOP-9490:
-------------------------------

    Attachment: HADOOP-9490.patch

Attaching the patch.

Note: You also need HDFS-4610 and HADOOP-9413 to get TestLocalFileSystem to pass on Windows.
                
> LocalFileSystem#reportChecksumFailure not closing the checksum file handle before rename
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-9490
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9490
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ivan Mitic
>            Assignee: Ivan Mitic
>             Fix For: 3.0.0
>
>         Attachments: HADOOP-9490.patch
>
>
> LocalFileSystem#reportChecksumFailure is not closing the open stream on the checksum
file before it moves it to the bad_files folder, what causes the operation to fail on Windows.
> TestLocalFileSystem fail on Windows because of this:
> {code}
> testReportChecksumFailure(org.apache.hadoop.fs.TestLocalFileSystem)  Time elapsed: 31
sec  <<< FAILURE!
> java.lang.AssertionError: 
> 	at org.junit.Assert.fail(Assert.java:91)
> 	at org.junit.Assert.assertTrue(Assert.java:43)
> 	at org.junit.Assert.assertTrue(Assert.java:54)
> 	at org.apache.hadoop.fs.TestLocalFileSystem.testReportChecksumFailure(TestLocalFileSystem.java:335)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message