Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 251531 - Discover command fails with RSE connection
Summary: Discover command fails with RSE connection
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: 2.1RC2   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: 2.1RC3   Edit
Assignee: Greg Watson CLA
QA Contact: Craig E Rasmussen CLA
URL:
Whiteboard:
Keywords:
Depends on: 252060
Blocks:
  Show dependency tree
 
Reported: 2008-10-21 08:55 EDT by Greg Watson CLA
Modified: 2008-10-24 16:06 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Watson CLA 2008-10-21 08:55:51 EDT
Starting an OpenMPI RM that uses an RSE connection results in the following error:

!SUBENTRY 1 org.eclipse.ptp.rm.mpi.openmpi.core 4 0 2008-10-21 08:37:47.348
!MESSAGE Failed to parse output of discover command.
!STACK 0
java.io.IOException: Pipe broken
	at java.io.PipedInputStream.read(PipedInputStream.java:255)
	at java.io.PipedInputStream.read(PipedInputStream.java:305)
	at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
	at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
	at java.io.InputStreamReader.read(InputStreamReader.java:167)
	at java.io.BufferedReader.fill(BufferedReader.java:136)
	at java.io.BufferedReader.readLine(BufferedReader.java:299)
	at java.io.BufferedReader.readLine(BufferedReader.java:362)
	at org.eclipse.ptp.rm.mpi.openmpi.core.rtsystem.OpenMPIDiscoverJob.parseParameters(OpenMPIDiscoverJob.java:339)
	at org.eclipse.ptp.rm.mpi.openmpi.core.rtsystem.OpenMPIDiscoverJob.parse(OpenMPIDiscoverJob.java:110)
	at org.eclipse.ptp.rm.core.rtsystem.AbstractRemoteCommandJob.run(AbstractRemoteCommandJob.java:129)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Greg Watson CLA 2008-10-24 16:06:36 EDT
The problem occurs because the InputStream from HostShellProcessAdapter does not correctly handle the situation when the shell exits, instead it throws an IOException. As a workaround, I've merged HostShellProcessAdapter with RSEProcess and fixed this particular situation. In reality, this should be fixed in RSE.