Community
Participate
Working Groups
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)
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.