JDK-8152191 : sun/tools/jstatd/TestJstatdServer.java fails with java.io.IOException: Stream Closed
  • Type: Bug
  • Component: core-svc
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • Submitted: 2016-03-18
  • Updated: 2023-12-14
  • Resolved: 2016-04-13
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
sun/tools/jstatd/TestJstatdServer.java fails in nightly with

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:799)
	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:117)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:196)
	at java.lang.Thread.run(Thread.java:804)
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:117)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:196)
	at java.lang.Thread.run(Thread.java:804)
java.lang.RuntimeException: Expected to get exit value of [0]

	at jdk.testlibrary.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:370)
	at JstatdTest.verifyJpsOutput(JstatdTest.java:156)
	at JstatdTest.runToolsAndVerify(JstatdTest.java:211)
	at JstatdTest.doTest(JstatdTest.java:325)
	at TestJstatdServer.main(TestJstatdServer.java:38)
	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:520)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(Thread.java:804)
Comments
This intermittent failure cause by the fact that jstat is killed before test reads it's output. JstatdTest.java:213 output = runJstat(); But this problem is not new so shouldn't be a blocker.
06-04-2016

Ah, no. If it is an environment issue it is not considered a blocker.
22-03-2016

I had not labeled as integration blocker because JDK-8130640 was a suspected host issue, but perhaps it should have the label until someone proves otherwise.
22-03-2016

Is this an integration blocker?
22-03-2016

ILW = M (test failure), L (intermittent), H (no workaround) = P4
19-03-2016