Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8230410

serviceability/dcmd/framework/InvalidCommandTest.java fails intermittently with timeout

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows

      Description

      The following test failed due to timeout in the JDK15 CI:

      serviceability/dcmd/framework/InvalidCommandTest.java

      Here's a snippet from the log file:

      #section:testng
      ----------messages:(7/487)----------
      command: testng -XX:+UsePerfData InvalidCommandTest
      reason: User specified action: run testng/othervm -XX:+UsePerfData InvalidCommandTest
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.base,java.compiler,java.management,jdk.internal.jvmstat --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
      Timeout information:
      --- Timeout information end.
      elapsed time (seconds): 1257.477
      ----------configuration:(5/225)----------
      Boot Layer
        add modules: java.base java.compiler java.management jdk.internal.jvmstat
        add exports: java.base/jdk.internal.misc ALL-UNNAMED
                     jdk.internal.jvmstat/sun.jvmstat.monitor ALL-UNNAMED

      ----------System.out:(75/4440)----------
      [TestNG] Running:
        serviceability/dcmd/framework/InvalidCommandTest.java

      Running DCMD 'asdf' through 'FileJcmdExecutor'
      Executing command '[/opt/mach5/mesos/work_dir/jib-master/install/jdk-15+18-721/linux-x64-debug.jdk/jdk-15/fastdebug/bin/jcmd, 32325, -f, /tmp/input13694243197492585235jcmd]'
      [2020-04-04T18:51:48.712728Z] Gathering output for process 32447
      [2020-04-04T18:51:50.717503Z] Waiting for completion for process 32447
      [2020-04-04T18:51:50.737066Z] Waiting for completion finished for process 32447
      Command returned with exit code 1
      ---------------- stdout ----------------
      32325:

      ---------------- stderr ----------------
      java.lang.IllegalArgumentException: Unknown diagnostic command

      ----------------------------------------

      test InvalidCommandTest.file(): success
      Running DCMD 'asdf' through 'JMXExecutor'
      ---------------- stdout ----------------

      ---------------- stderr ----------------
      java.lang.IllegalArgumentException: Unknown diagnostic command: asdf
      at jdk.test.lib.dcmd.JMXExecutor.executeImpl(JMXExecutor.java:105)
      at jdk.test.lib.dcmd.CommandExecutor.execute(CommandExecutor.java:61)
      at jdk.test.lib.dcmd.CommandExecutor.execute(CommandExecutor.java:43)
      at InvalidCommandTest.run(InvalidCommandTest.java:46)
      at InvalidCommandTest.jmx(InvalidCommandTest.java:73)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: javax.management.ReflectionException
      at jdk.management/com.sun.management.internal.DiagnosticCommandImpl.invoke(DiagnosticCommandImpl.java:273)
      at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
      at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
      at jdk.test.lib.dcmd.JMXExecutor.executeImpl(JMXExecutor.java:96)
      ... 33 more
      Caused by: java.lang.NoSuchMethodException: Method asdf with signature [[Ljava.lang.String;] not found
      ... 37 more

      ----------------------------------------

      test InvalidCommandTest.jmx(): success
      debugee.stdout> Test Java process started!
      debugee.stdout> Waiting for the quit command from the test ...
      Running DCMD 'asdf' through 'MainClassJcmdExecutor'
      Executing command '[/opt/mach5/mesos/work_dir/jib-master/install/jdk-15+18-721/linux-x64-debug.jdk/jdk-15/fastdebug/bin/jcmd, InvalidCommandTest$Process, asdf]'
      [2020-04-04T18:52:04.501715Z] Gathering output for process 32589
      Timeout refired 1200 times
      ----------System.err:(0/0)----------
      ----------rerun:(47/8186)*----------

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dtitov Daniil Titov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: