Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: nodemanager, test
    • Labels:
      None
    • Environment:

      Description

      The tests listed below fail.

      • testErrorLogOnContainerExitWithMultipleFiles
      • testErrorLogOnContainerExitWithCustomPattern
      • testErrorLogOnContainerExitForCase
      • testErrorLogOnContainerExit
      • testErrorLogOnContainerExitForExt

      The failures happen in same place.

      java.lang.AssertionError: Should contain contents of error Log
          at org.junit.Assert.fail(Assert.java:88)
          at org.junit.Assert.assertTrue(Assert.java:41)
          at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.TestContainerLaunch$ContainerExitHandler.handle(TestContainerLaunch.java:633)
          at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.TestContainerLaunch$ContainerExitHandler.handle(TestContainerLaunch.java:602)
          at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.handleContainerExitWithFailure(ContainerLaunch.java:438)
          at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:359)
          at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.TestContainerLaunch.verifyTailErrorLogOnContainerExit(TestContainerLaunch.java:597)
          at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.TestContainerLaunch.testErrorLogOnContainerExitWithMultipleFiles(TestContainerLaunch.java:528)
      

      All these tests call verifyTailErrorLogOnContainerExit and it calls below code.

      TestContainerLaunch.java
       632         Assert.assertTrue("Should contain contents of error Log",                                       
       633             exitEvent.getDiagnosticInfo().contains(
       634                 INVALID_JAVA_HOME + "/bin/java: No such file or directory"));
       635       }
      

      In environment with non-english locale, this fails because the error message returned with non-english text like below.

      2016-01-06 23:27:45,427 INFO  [main] containermanager.BaseContainerManagerTest (TestContainerLaunch.java:handle(622)) - Diagnostic Info : Container exited with a non-zero exit code 127. Error files: stderr.log, stdout.
      Last 4096 bytes of stderr.log :
      /bin/bash: /no/jvm/here/bin/java: そのようなファイルやディレクトリはありません
      

        Attachments

        1. YARN-4550.1.patch
          1 kB
          Takashi Ohnishi

          Activity

            People

            • Assignee:
              bwtakacy Takashi Ohnishi
              Reporter:
              bwtakacy Takashi Ohnishi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: