hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-4409) FileSystemContractBaseTest should be less brittle in teardown
Date Wed, 16 Jan 2013 10:54:14 GMT
Steve Loughran created HDFS-4409:
------------------------------------

             Summary: FileSystemContractBaseTest should be less brittle in teardown
                 Key: HDFS-4409
                 URL: https://issues.apache.org/jira/browse/HDFS-4409
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: test
    Affects Versions: 3.0.0
            Reporter: Steve Loughran
            Priority: Minor


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

Mime
View raw message