JDK-8154722 : Test gc/ergonomics/TestDynamicNumberOfGCThreads.java fails
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8u102
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2016-04-20
  • Updated: 2016-10-13
  • Resolved: 2016-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u102Fixed
Description
Testsuite name: hotspot 
Test name(s): gc/ergonomics/TestDynamicNumberOfGCThreads.java
Product(s) tested: JDK 8 u102 b02
OS/architecture:Solaris sparcv9

Reproducible: Always


Is it a Regression: No, test also fails for JDK 8 u102 b01 , where it was introduced

Is it a platform specific issue: No, test also fails for linux x64 for JDK 8 u102 b02


Exception/Error from Log:

java.lang.RuntimeException: 'new_active_workers' missing from stdout/stderr 

	at com.oracle.java.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:80)
	at TestDynamicNumberOfGCThreads.verifyDynamicNumberOfGCThreads(TestDynamicNumberOfGCThreads.java:48)
	at TestDynamicNumberOfGCThreads.testDynamicNumberOfGCThreads(TestDynamicNumberOfGCThreads.java:57)
	at TestDynamicNumberOfGCThreads.main(TestDynamicNumberOfGCThreads.java:39)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.RuntimeException: 'new_active_workers' missing from stdout/stderr 

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'new_active_workers' missing from stdout/stderr
Comments
The same typo is presented in JDK7. So, seems we need to get it backported to jdk7 as well.
23-05-2016

Haven't seen the critical request template when was looking at the bug first time. No objections from SQE to take the safe fix to PSU16_03.
23-05-2016

What is a justification to take it in PSU? Do we need backports?
23-05-2016

Critical Request Template - Justification : Test fails because of typo in output that has been fixed in JDK 9. The reason to do a critical request is that it is completely safe, and that typos look bad. - Risk Analysis : None, fixing typo - Webrev : http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/rev/79351ea143ee - Testing (done/to-be-done) :Run the test that failed before - Back ports (done/to-be-done) : Done - Fix For Release : JDK 8 PSU
23-05-2016

This looks very much like JDK-8076995, but that was fixed in b02. Fairoz, please investigate
20-04-2016