Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7257

AggregatedLogsBlock reports a bad 'end' value as a bad 'start' value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0, 3.0.0-beta1
    • 2.9.0, 3.0.0-beta1, 3.1.0
    • log-aggregation
    • None

    Description

      TestHSWebApp has been failing recently:

      Running org.apache.hadoop.mapreduce.v2.hs.webapp.TestHSWebApp
      Tests run: 17, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.57 sec <<< FAILURE! - in org.apache.hadoop.mapreduce.v2.hs.webapp.TestHSWebApp
      testLogsViewBadStartEnd(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHSWebApp)  Time elapsed: 0.076 sec  <<< FAILURE!
      org.mockito.exceptions.verification.junit.ArgumentsAreDifferent: 
      Argument(s) are different! Wanted:
      printWriter.write(
          "Invalid log end value: bar"
      );
      -> at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHSWebApp.testLogsViewBadStartEnd(TestHSWebApp.java:261)
      Actual invocation has different arguments:
      printWriter.write(
          "<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">"
      );
      -> at org.apache.hadoop.yarn.webapp.view.TextView.echoWithoutEscapeHtml(TextView.java:62)
      
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      	at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHSWebApp.testLogsViewBadStartEnd(TestHSWebApp.java:261)
      

      Attachments

        1. MAPREDUCE-6969.001.patch
          0.9 kB
          Jason Darrell Lowe

        Issue Links

          Activity

            People

              jlowe Jason Darrell Lowe
              jlowe Jason Darrell Lowe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: