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

TestTimedOutTestsListener#testThreadDumpAndDeadlocks sometimes times out

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 2.7.3, 2.6.4, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      Saw this test failure today, the @Test(timeout=500) seems too aggressive to me.

      testThreadDumpAndDeadlocks(org.apache.hadoop.test.TestTimedOutTestsListener)  Time elapsed: 0.521 sec  <<< ERROR!
      java.lang.Exception: test timed out after 500 milliseconds
      	at jdk.internal.org.objectweb.asm.ByteVector.putShort(ByteVector.java:147)
      	at jdk.internal.org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:942)
      	at java.lang.invoke.InvokerBytecodeGenerator.generateCustomizedCodeBytes(InvokerBytecodeGenerator.java:727)
      	at java.lang.invoke.InvokerBytecodeGenerator.generateCustomizedCode(InvokerBytecodeGenerator.java:618)
      	at java.lang.invoke.LambdaForm.compileToBytecode(LambdaForm.java:654)
      	at java.lang.invoke.LambdaForm.prepare(LambdaForm.java:635)
      	at java.lang.invoke.MethodHandle.<init>(MethodHandle.java:461)
      	at java.lang.invoke.BoundMethodHandle.<init>(BoundMethodHandle.java:56)
      	at java.lang.invoke.SimpleMethodHandle.<init>(SimpleMethodHandle.java:37)
      	at java.lang.invoke.SimpleMethodHandle.make(SimpleMethodHandle.java:41)
      	at java.lang.invoke.LambdaForm.createIdentityForms(LambdaForm.java:1778)
      	at java.lang.invoke.LambdaForm.<clinit>(LambdaForm.java:1833)
      	at java.lang.invoke.DirectMethodHandle.makePreparedLambdaForm(DirectMethodHandle.java:222)
      	at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:187)
      	at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:176)
      	at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:83)
      	at java.lang.invoke.MethodHandles$Lookup.getDirectMethodCommon(MethodHandles.java:1656)
      	at java.lang.invoke.MethodHandles$Lookup.getDirectMethodNoSecurityManager(MethodHandles.java:1613)
      	at java.lang.invoke.MethodHandles$Lookup.getDirectMethodForConstant(MethodHandles.java:1798)
      	at java.lang.invoke.MethodHandles$Lookup.linkMethodHandleConstant(MethodHandles.java:1747)
      	at java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodHandleNatives.java:477)
      	at java.lang.UNIXProcess$Platform.get(UNIXProcess.java:155)
      	at java.lang.UNIXProcess.<clinit>(UNIXProcess.java:168)
      	at java.lang.ProcessImpl.start(ProcessImpl.java:130)
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
      	at org.apache.hadoop.util.Shell.runCommand(Shell.java:868)
      	at org.apache.hadoop.util.Shell.run(Shell.java:838)
      	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:1117)
      	at org.apache.hadoop.util.Shell.checkIsBashSupported(Shell.java:716)
      	at org.apache.hadoop.util.Shell.<clinit>(Shell.java:705)
      	at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:79)
      	at org.apache.hadoop.test.TimedOutTestsListener.buildThreadDump(TimedOutTestsListener.java:98)
      	at org.apache.hadoop.test.TimedOutTestsListener.buildThreadDiagnosticString(TimedOutTestsListener.java:73)
      	at org.apache.hadoop.test.TimedOutTestsListener.testFailure(TimedOutTestsListener.java:62)
      	at org.apache.hadoop.test.TestTimedOutTestsListener.testThreadDumpAndDeadlocks(TestTimedOutTestsListener.java:163)
      

      Attachments

        1. HADOOP-12736.01.patch
          0.7 kB
          Xiao Chen

        Activity

          People

            xiaochen Xiao Chen
            xiaochen Xiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: