[
https://issues.apache.org/jira/browse/HADOOP-9259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Loughran moved HDFS-4409 to HADOOP-9259:
----------------------------------------------
Component/s: (was: test)
test
Affects Version/s: (was: 1.1.2)
(was: 3.0.0)
1.1.2
3.0.0
Key: HADOOP-9259 (was: HDFS-4409)
Project: Hadoop Common (was: Hadoop HDFS)
> FileSystemContractBaseTest should be less brittle in teardown
> -------------------------------------------------------------
>
> Key: HADOOP-9259
> URL: https://issues.apache.org/jira/browse/HADOOP-9259
> Project: Hadoop Common
> Issue Type: Improvement
> Components: test
> Affects Versions: 3.0.0, 1.1.2
> Reporter: Steve Loughran
> Priority: Minor
> Attachments: HDFS-4409.patch
>
>
> the teardown code in FileSystemContractBaseTest assumes that {{fs!=null}} and
> that it's OK to throw an exception if the delete operation fails. Better to
> check the {{fs}} value and catch and convert an exception in the
> {{fs.delete()}} operation to a {{LOG.error()}} instead.
> This will stop failures in teardown becoming a distraction from the root
> causes of the problem (that your FileSystem is broken)
--
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