Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317895

Summary: Launching an Open MPI job using RSE fails with 'Premature end of file'
Product: [Tools] PTP Reporter: Greg Watson <g.watson>
Component: RM.Open MPIAssignee: Greg Watson <g.watson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: 4.0.1   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Greg Watson CLA 2010-06-24 19:48:56 EDT
When launching an Open MPI job using a resource manager configured with RSE, the job fails with the message:

	Failed after executing command to launch parallel application.
	Failed to parse output of Open MPI command. Check output for errors.
	Premature end of file.
Comment 1 Greg Watson CLA 2010-06-24 19:49:23 EDT
This appears to be because the InputStream being read by the XML parse is closed prematurely, before the parser has had a chance to read it. The proposed solution is to wait for the host shell process to terminate before closing the input end of the pipe that is used for stdout/stderr. There is some risk with this, as it could presumably wait forever. However the code should only be called when the process output thread is about to terminate.
Comment 2 Greg Watson CLA 2010-06-24 21:31:01 EDT
Committed to 4.0 and HEAD.