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

JMXStartStopTest.java fails on Solaris-X64

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 11, 12, 13
    • Fix Version/s: 12
    • Component/s: core-svc
    • Labels:
      None

      Description

      The following test failed on Solaris X64 in fastdebug,
      release and slowdebug configs using jdk11+19 bits:

      sun/management/jmxremote/startstop/JMXStartStopTest.java

      The test timed out in all configs, but it is not clear why the
      test has timed out. In some cases, the test times out while
      retrying sub-test "Test eleven" and in other cases the test
      times out while retrying sub-test "Test twelve".

      I executed three complete test runs so there are a total of
      9 failure logs for this bug to start with. Two timed out in
      "Test twelve":

      jdk11_migrate_1/JMXStartStopTest.jtr.fastdebug
      jdk11_migrate_3/JMXStartStopTest.jtr.fastdebug

      and the rest timed out in "Test eleven":

      jdk11_migrate_1/JMXStartStopTest.jtr.release
      jdk11_migrate_1/JMXStartStopTest.jtr.slowdebug
      jdk11_migrate_2/JMXStartStopTest.jtr.fastdebug
      jdk11_migrate_2/JMXStartStopTest.jtr.release
      jdk11_migrate_2/JMXStartStopTest.jtr.slowdebug
      jdk11_migrate_3/JMXStartStopTest.jtr.release
      jdk11_migrate_3/JMXStartStopTest.jtr.slowdebug

      Here's a snippet from jdk11_migrate_1/JMXStartStopTest.jtr.release
      to show the stdout messages for one of failures:

      **** Test eleven ****
      Command line: [/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/images/jdk/bin/java -cp /work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/test-support/jtreg_open_test_jdk_jdk_svc/classes/15/sun/management/jmxremote/startstop/JMXStartStopTest.d:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/test-support/jtreg_open_test_jdk_jdk_svc/classes/15/lib/testlibrary -XX:+UsePerfData -Dcom.sun.management.jmxremote.port=53345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=true TestApp ]
      [TestApp{test_11}]:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/images/jdk/bin/java -cp /work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/test-support/jtreg_open_test_jdk_jdk_svc/classes/15/sun/management/jmxremote/startstop/JMXStartStopTest.d:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/test-support/jtreg_open_test_jdk_jdk_svc/classes/15/lib/testlibrary -XX:+UsePerfData -Dcom.sun.management.jmxremote.port=53345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=true TestApp
      [TestApp{test_11}] main enter
      [jcmd]:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/images/jdk/bin/jcmd TestApp ManagementAgent.stop
      [jcmd] 4963:
      [jcmd] Command executed successfully
      [jcmd] 19774:
      [jcmd] Command executed successfully
      [jcmd]:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/images/jdk/bin/jcmd TestApp ManagementAgent.start jmxremote.port=58224 jmxremote.authenticate=false jmxremote.ssl=false
      [jcmd] 4963:
      [jcmd] Command executed successfully
      [jcmd] 19774:
      [TestApp{test_11}] read: 0
      [TestApp{test_11}] main exit
      Failed to allocate ports. Retrying ...


      Here's a snippet from jdk11_migrate_1/JMXStartStopTest.jtr.release
      to show the stderr messages for one of failures:

      [jcmd] java.lang.RuntimeException: jdk.internal.agent.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 51348; nested exception is: java.net.BindException: Address already in use (Bind failed)
      [jcmd] java.lang.RuntimeException: Invalid agent state: Agent already started
      [TestApp{test_11}] Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 58224; nested exception is:
      [TestApp{test_11}] java.net.BindException: Address already in use (Bind failed)
      [TestApp{test_11}] jdk.internal.agent.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 58224; nested exception is:
      [TestApp{test_11}] java.net.BindException: Address already in use (Bind failed)
      [TestApp{test_11}] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:491)
      [TestApp{test_11}] at jdk.management.agent/jdk.internal.agent.Agent.startRemoteManagementAgent(Agent.java:388)
      [TestApp{test_11}] Caused by: java.rmi.server.ExportException: Port already in use: 58224; nested exception is:
      [TestApp{test_11}] java.net.BindException: Address already in use (Bind failed)
      [TestApp{test_11}] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:335)
      [TestApp{test_11}] at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243)
      [TestApp{test_11}] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
      [TestApp{test_11}] at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
      [TestApp{test_11}] at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:233)
      [TestApp{test_11}] at java.rmi/sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:220)
      [TestApp{test_11}] at java.rmi/sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:180)
      [TestApp{test_11}] at jdk.management.agent/sun.management.jmxremote.SingleEntryRegistry.<init>(SingleEntryRegistry.java:49)
      [TestApp{test_11}] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:836)
      [TestApp{test_11}] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:479)
      [TestApp{test_11}] ... 1 more
      [TestApp{test_11}] Caused by: java.net.BindException: Address already in use (Bind failed)
      [TestApp{test_11}] at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
      [TestApp{test_11}] at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:435)
      [TestApp{test_11}] at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
      [TestApp{test_11}] at java.base/java.net.ServerSocket.<init>(ServerSocket.java:243)
      [TestApp{test_11}] at java.base/java.net.ServerSocket.<init>(ServerSocket.java:135)
      [TestApp{test_11}] at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45)
      [TestApp{test_11}] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
      [TestApp{test_11}] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324)
      [TestApp{test_11}] ... 10 more

        Attachments

          Activity

            People

            • Assignee:
              hb Harsha Wardhana B (Inactive)
              Reporter:
              dcubed Daniel Daugherty
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: