JDK-8130640 : sun/tools/jstatd/* tests java.io.IOException: Stream Closed
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris
  • CPU: sparc
  • Submitted: 2015-07-06
  • Updated: 2016-08-15
  • Resolved: 2016-08-15
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 10
10Resolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
sun/tools/jstatd/TestJstatdDefaults.java
sun/tools/jstatd/TestJstatdPort.java
sun/tools/jstatd/TestJstatdPortAndServer.java
sun/tools/jstatd/TestJstatdServer.java

java.io.IOException: Stream Closed
	at java.io.FileInputStream.readBytes(Native Method)
	at java.io.FileInputStream.read(FileInputStream.java:255)
	at java.lang.ProcessImpl$DeferredCloseInputStream.read(ProcessImpl.java:762)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
	at java.io.FilterInputStream.read(FilterInputStream.java:107)
	at jdk.testlibrary.StreamPumper.run(StreamPumper.java:112)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:265)
	at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:191)
	at java.lang.Thread.run(Thread.java:745)
java.io.IOException: Stream closed
	at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:336)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
	at java.io.FilterInputStream.read(FilterInputStream.java:107)
	at jdk.testlibrary.StreamPumper.run(StreamPumper.java:112)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:265)
	at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:191)
	at java.lang.Thread.run(Thread.java:745)
java.lang.RuntimeException: Output should not be empty: expected false, was true
	at jdk.testlibrary.Asserts.fail(Asserts.java:536)
	at jdk.testlibrary.Asserts.assertFalse(Asserts.java:461)
	at JstatdTest.verifyJpsOutput(JstatdTest.java:157)
	at JstatdTest.runToolsAndVerify(JstatdTest.java:211)
	at JstatdTest.doTest(JstatdTest.java:325)
	at TestJstatdDefaults.main(TestJstatdDefaults.java:36)
	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:502)
	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: Output should not be empty: expected false, was true
JavaTest Message: shutting down test

log:
http://aurora.ru.oracle.com/slot-gw/986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03-240/results/workDir/sun/tools/jstatd/TestJstatdDefaults.jtr
http://aurora-ds3.us.oracle.com:9502/runs/00986/986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03/986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03-240/results/workDir/sun/tools/jstatd/TestJstatdPort.jtr
http://aurora-ds3.us.oracle.com:9502/runs/00986/986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03/986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03-240/results/workDir/sun/tools/jstatd/TestJstatdPortAndServer.jtr
http://aurora-ds3.us.oracle.com:9502/runs/00986/986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03/986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03-240/results/workDir/sun/tools/jstatd/TestJstatdServer.jtr

http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03-240
Comments
No, wrong bug. Those failures should match JDK-8164018 instead.
15-08-2016

Seen again http://aurora.us.oracle.com/functional/faces/RunDetails.xhtml?names=1558647.PIT.VM-833#%3Ajdk_svc%20%5B!ignore%5D%20(jtreg)_sun/tools/jstatd/TestJstatdDefaults.java
15-08-2016

The failure mode has not been seen for a long time.
15-08-2016

jstatd execution is failing (exit 134) but we don't see any of the output from that. Access to the test machine is not currently available - regular gtee password not accepted.
07-07-2015