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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: trunk-win, 3.0.0-alpha1
    • Fix Version/s: 2.0.3-alpha
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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-branch-trunk-win.patch
          0.8 kB
          Chris Nauroth
        2. HADOOP-8948.patch
          0.8 kB
          Chris Nauroth

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: