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

TEST_BUG: java/rmi/reliability/benchmark fails intermittently because of use of fixed port

    Details

    • Subcomponent:
    • Resolved In Build:
      b120
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        TESTFAIL:java/rmi/reliability/benchmark/runRmiBench.sh

        The regression test java/rmi/reliability/benchmark/runRmiBench.sh can fail because it uses a fixed port. If this port is already in use by something else on the system, the test will fail.

        Basically the runRmiBench.sh script uses a hardcoded port of 2007, and it passes this port value to both the client and server JVMs. If this port is already in use, the server will fail to start, and the client will fail because it cannot connect.

        This occurred recently in a JPRT integration run. The log is below.

        Either a port should be reserved in java/rmi/testlibrary, or a random unused port should be chosen and then passed to both the client and the server.

        --------------------------------------------------
        TEST: java/rmi/reliability/benchmark/runRmiBench.sh
        JDK under test: (C:\jprt\T\P1\120929~1.JCG\TESTPR~1\WINDOW~1.2-P)
        java version "1.8.0-internal"
        Java(TM) SE Runtime Environment (build 1.8.0-internal-201208081209.jcg-int.tl-pit-2d-awt-b00)
        Java HotSpot(TM) 64-Bit Server VM (build 24.0-b18, mixed mode)

        [... many build lines omitted ...]

        ACTION: shell -- Failed. Execution failed: exit code 1
        REASON: User specified action: run shell/timeout=1800 runRmiBench.sh
        TIME: 11.594 seconds
        messages:
        command: shell runRmiBench.sh []
        reason: User specified action: run shell/timeout=1800 runRmiBench.sh
        elapsed time (seconds): 11.594
        STDOUT:
        Starting RMI benchmark server
        Starting RMI benchmark client
        STDERR:
        Error: failed to initialize server: java.rmi.server.ExportException: Port already in use: 2007; nested exception is:
        java.net.BindException: Address already in use: JVM_Bind
        Error: failed to connect to server: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
        java.net.ConnectException: Connection refused: connect

        TEST RESULT: Failed. Execution failed: exit code 1
        --------------------------------------------------

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tyan Tristan Yan (Inactive)
                  Reporter:
                  smarks Stuart Marks
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: