JDK-8333765 : [17u] Six sun/tools/jstatd testcases fail after JDK-8233725
  • Type: Bug
  • Component: tools
  • Sub-Component: visualvm
  • Affected Version: 17
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2024-06-07
  • Updated: 2024-06-24
  • Resolved: 2024-06-10
Related Reports
Duplicate :  
Description
The below 6 sun/tools/jstatd testcases fail after JDK-8233725:
sun/tools/jstatd/TestJstatdExternalRegistry.java
sun/tools/jstatd/TestJstatdPort.java
sun/tools/jstatd/TestJstatdPortAndServer.java
sun/tools/jstatd/TestJstatdRmiPort.java
sun/tools/jstatd/TestJstatdDefaults.java
sun/tools/jstatd/TestJstatdServer.java

test log snippet:
cmd: /var/tmp/tone/run/jtreg/jdk-repo/build/linux-aarch64-server-release/images/jdk/bin/jstatd -J-XX:+UsePerfData -J-Djava.security.manager=allow -J-Djava.security.policy=/var/tmp/tone/run/jtreg/jdk-repo/test/jdk/sun/tools/jstatd/all.policy -n TestJstatdServer
exitvalue: 143
stderr: WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by sun.tools.jstatd.Jstatd (jrt:/jdk.jstatd)
WARNING: Please consider reporting this to the maintainers of sun.tools.jstatd.Jstatd
WARNING: System::setSecurityManager will be removed in a future release

stdout: jstatd started (bound to /TestJstatdServer)


[2024-06-06T15:02:39.257108791Z] Waiting for completion for process 3843518
[2024-06-06T15:02:39.257194549Z] Waiting for completion finished for process 3843518
STDERR:
[Jstatd-Thread] WARNING: A terminally deprecated method in java.lang.System has been called
[Jstatd-Thread] WARNING: System::setSecurityManager has been called by sun.tools.jstatd.Jstatd (jrt:/jdk.jstatd)
[Jstatd-Thread] WARNING: Please consider reporting this to the maintainers of sun.tools.jstatd.Jstatd
[Jstatd-Thread] WARNING: System::setSecurityManager will be removed in a future release
 stdout: [jstatd started (bound to /TestJstatdServer)
];
 stderr: [WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by sun.tools.jstatd.Jstatd (jrt:/jdk.jstatd)
WARNING: Please consider reporting this to the maintainers of sun.tools.jstatd.Jstatd
WARNING: System::setSecurityManager will be removed in a future release
]
 exitValue = 143

java.lang.RuntimeException: Output should contain one line: expected 5 to equal 1
	at jdk.test.lib.Asserts.fail(Asserts.java:594)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
	at JstatdTest.runTest(JstatdTest.java:361)
	at JstatdTest.doTest(JstatdTest.java:320)
	at TestJstatdServer.main(TestJstatdServer.java:39)
Comments
[~syan]please provide a link to the duplicated issue under issue-links -> 'duplicates'.
24-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2548 Date: 2024-06-07 04:38:43 +0000
07-06-2024