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