Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5409

TestOfflineEditsViewer#testStored fails on Windows due to CRLF line endings in editsStored.xml from git checkout

    Details

    • Type: Test
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.0-alpha1
    • Fix Version/s: 2.5.0
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      When doing a git checkout on Windows, hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored.xml has CRLF line endings. The offline edits viewer tool generates XML output with LF line endings. This causes TestOfflineEditsViewer#testStored to fail when asserting that editsStored.xml and editsStoredParsed.xml have the same content.

        Attachments

        1. HDFS-5409.1.patch
          3 kB
          Chris Nauroth
        2. HDFS-5409.2.patch
          2 kB
          Chris Nauroth

          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: