[Swift-devel] SGE's qstat output parsing failure

Luiz Gadelha lgadelha at lncc.br
Wed Nov 23 12:27:03 CST 2011


Hi,

There is a small bug in the parsing of SGE's qstat output lines. For the following qstat output:

job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID 
-----------------------------------------------------------------------------------------------------------------
 543309 0.50500 null       lgadelha     r     11/22/2011 14:40:38 linux.q at cmm11bl5.hpc.lncc.br       1        
 543310 0.50500 null       lgadelha     r     11/22/2011 14:40:38 linux.q at cmm11bl5.hpc.lncc.br       1        
 ...

QueuePoller incorrectly assumes that the job identifier is in the same position as "job-ID" in the header, which is not the case above, where it finds a space character and returns an empty string as the job identifier, Swift fails with a "Failed to parse qstat line" message. The attached log file is from a simple test script run that presents this problem.

The attached patch fixed the problem in my environment.

Regards,

Luiz

--
Luiz Gadelha
http://www.lncc.br/~lgadelha

-------------- next part --------------
A non-text attachment was scrubbed...
Name: openssl-20111122-1725-07cmqx2a.log.gz
Type: application/x-gzip
Size: 63414 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20111123/611ff89a/attachment.bin>
-------------- next part --------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: sge_fix.diff
Type: application/octet-stream
Size: 3848 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20111123/611ff89a/attachment.obj>
-------------- next part --------------





More information about the Swift-devel mailing list