| 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 MPI | Assignee: | 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
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. Committed to 4.0 and HEAD. |