Details
-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b120
-
generic
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8030310 | 8u5 | Tristan Yan | P4 | Resolved | Fixed | b01 |
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
--------------------------------------------------
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
- backported by
-
JDK-8030310 TEST_BUG: java/rmi/reliability/benchmark fails intermittently because of use of fixed port
- Resolved
- relates to
-
JDK-8030284 TEST_BUG: intermittent StackOverflow in RMI bench/serial test
- Closed