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

LocalFileSystem#reportChecksumFailure not closing the checksum file handle before rename

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.1.0-beta
    • fs
    • None
    • Reviewed

    Description

      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:

      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)
      

      Attachments

        1. HADOOP-9490.patch
          0.8 kB
          Ivan Mitic

        Issue Links

          Activity

            People

              ivanmi Ivan Mitic
              ivanmi Ivan Mitic
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: