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

flaky test detection tool failed to handle special control characters in test result

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 2.7.0
    • tools
    • None
    • Reviewed

    Description

      When running the tool from HADOOP-11045 on latest Hadoop-hdfs-trunk job, I'm seeing a problem here:

      [yzhang@localhost jenkinsftf]$ ./determine-flaky-tests-hadoop.py -j Hadoop-hdfs-trunk 
      ****Recently FAILED builds in url: https://builds.apache.org/job/Hadoop-hdfs-trunk
          THERE ARE 5 builds (out of 6) that have failed tests in the past 14 days, as listed below:
      
      ===>https://builds.apache.org/job/Hadoop-hdfs-trunk/2026/testReport (2015-02-04 03:30:00)
          Could not open testReport, check https://builds.apache.org/job/Hadoop-hdfs-trunk/2026/Console for why it was reported failed
      ...
      

      I saw that the testReport can actually be opened from browser. After looking, I found that HDFS-7287 fix added the following test code:

      //Create a directory whose name should be escaped in XML
      Path invalidXMLDir = new Path("/dirContainingInvalidXMLChar\u0000here");
      hdfs.mkdirs(invalidXMLDir);
      ...
      

      And the output from this code caused the tool to choke.

      I found a solution here and I'm attaching a patch.

      Attachments

        1. HADOOP-11549.001.patch
          0.7 kB
          Yongjun Zhang

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yzhangal Yongjun Zhang
            yzhangal Yongjun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment