Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9259

FileSystemContractBaseTest should be less brittle in teardown

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.2, 3.0.0-alpha1
    • None
    • test
    • None

    Description

      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)

      Attachments

        1. HDFS-4409.patch
          0.8 kB
          Steve Loughran

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: