aws-samples/hpc-cost-simulator

[BUG] LSF Parser error when indexRangeCnt != 0

Closed this issue · 0 comments

Describe the bug

The following line:

"JOB_FINISH" "10.108" 1657287715 819 1209 33554435 1 1657287574 0 0 0          "u001" "normal" "" "" "" "lsf1" "/root" "" "" "" "1657287574.819" 0 0        32  1.0 "test[1-1000]" "#BSUB -J test[1-1000];delay=106;mem=661;stress --cpu 1 --vm 1 --vm-bytes M --timeout " -1.000000 -1.000000 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 "" "default" 0   1 "" ""  -1 0 0 "" "" "" "" 0 "" 15 "" -1 ""      "" "" "" -1 "" "" 5136 ""          0 "" "" 6 1058 "1" 1110 "default" 1041 "jfincache" 1086 "-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 " 1032 "0" 1033 "0" 0 -1 0 0 ""                                      "" -1 "" -1 0 "" 0 0 "" 0 "/root" 0 "" 0.000000 0.00 0.00 0.00 0.00 0        -1 1 678 1000 1 0 0 0 1 "schedulingOverhead" "0.00"

Produces the following error:

ERROR:2022-08-08 23:03:24,792: test_files/LSFLogParser/issues/new/lsb.acct, line 1009: Bad record: numGPURusages(%d)=schedulingOverhead is not an int
['JOB_FINISH', '10.108', '1657287715', '819', '1209', '33554435', '1', '1657287574', '0', '0', '0', 'u001', 'normal', '', '', '', 'lsf1', '/root', '', '', '', '1657287574.819', '0', '0', '32', '1.0', 'test[1-1000]', '#BSUB -J test[1-1000];delay=106;mem=661;stress --cpu 1 --vm 1 --vm-bytes M --timeout ', '-1.000000', '-1.000000', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '', 'default', '0', '1', '', '', '-1', '0', '0', '', '', '', '', '0', '', '15', '', '-1', '', '', '', '', '-1', '', '', '5136', '', '0', '', '', '6', '1058', '1', '1110', 'default', '1041', 'jfincache', '1086', '-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ', '1032', '0', '1033', '0', '0', '-1', '0', '0', '', '', '-1', '', '-1', '0', '', '0', '0', '', '0', '/root', '0', '', '0.000000', '0.00', '0.00', '0.00', '0.00', '0', '-1', '1', '678', '1000', '1', '0', '0', '0', '1', 'schedulingOverhead', '0.00']

Expected behavior
No parser error

Repository Version