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

TestFileUtil.testGetDU fails on Windows due to incorrect assumption of line separator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • trunk-win, 3.0.0-alpha1
    • 2.0.3-alpha
    • test
    • None
    • Reviewed

    Description

      The test asserts 8 bytes of disk usage, based on 2 files, each containing a single line of 3 characters followed by line terminator. This is fine for Unix line endings (1 additional byte) but incorrect for Windows line endings (2 additional bytes).

      Attachments

        1. HADOOP-8948.patch
          0.8 kB
          Chris Nauroth
        2. HADOOP-8948-branch-trunk-win.patch
          0.8 kB
          Chris Nauroth

        Issue Links

          Activity

            People

              cnauroth Chris Nauroth
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: