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

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.0, 3.0.0-alpha1
    • 2.5.0
    • test
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: