| Summary: | [console] Streams closed notification send to late if input is connected to file | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Paul Pazderski <paul-eclipse> |
| Component: | Debug | Assignee: | Paul Pazderski <paul-eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sarika.sinha |
| Version: | 4.12 | ||
| Target Milestone: | 4.14 M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/150922 https://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=154876b4fe661e138d81eebed0fe2e41da7da86a https://git.eclipse.org/r/152138 https://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=cb886eecb5f665d6955c50857c164d50abc2cf88 |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 552030 | ||
|
Description
Paul Pazderski
New Gerrit change created: https://git.eclipse.org/r/150922 Gerrit change https://git.eclipse.org/r/150922 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=154876b4fe661e138d81eebed0fe2e41da7da86a https://download.eclipse.org/eclipse/downloads/drops4/I20191105-1800/testresults/html/org.eclipse.debug.tests_ep414I-unit-cen64-gtk3-java11_linux.gtk.x86_64_11.html testProcessTerminationNotificationWithInputFile Failure Test triggered errors. expected:<0> but was:<1> junit.framework.AssertionFailedError: Test triggered errors. expected:<0> but was:<1> at junit.framework.Assert.fail(Assert.java:57) at junit.framework.Assert.failNotEquals(Assert.java:329) at junit.framework.Assert.assertEquals(Assert.java:78) at junit.framework.Assert.assertEquals(Assert.java:234) at junit.framework.TestCase.assertEquals(TestCase.java:401) at org.eclipse.debug.tests.console.ProcessConsoleTests.tearDown(ProcessConsoleTests.java:85) at junit.framework.TestCase.runBare(TestCase.java:146) Thank you Sarika, I'll investigate. I assume the failure is not directly related to this change. Related stack trace from log is: java.io.IOException: Stream Closed at java.base/java.io.FileInputStream.readBytes(Native Method) at java.base/java.io.FileInputStream.read(FileInputStream.java:279) at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.base/java.io.InputStreamReader.read(InputStreamReader.java:185) at java.base/java.io.Reader.read(Reader.java:229) at org.eclipse.debug.internal.ui.views.console.ProcessConsole$InputReadJob.run(ProcessConsole.java:788) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) New Gerrit change created: https://git.eclipse.org/r/152138 If input stream is closed before the InputReadJob had a chance to start it can produce this "Stream Closed" exception. The change improve this and should fix the test failure. Gerrit change https://git.eclipse.org/r/152138 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=cb886eecb5f665d6955c50857c164d50abc2cf88 |