Skip to content
Snippets Groups Projects
Commit fff922e9 authored by David Bigagli's avatar David Bigagli
Browse files

Fixed sh5util loop when there are no node-step files.

parent b1699285
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ documents those changes that are of interest to users and admins. ...@@ -16,6 +16,7 @@ documents those changes that are of interest to users and admins.
-- proctrack/cgroup - Add locking to prevent race condition where one job step -- proctrack/cgroup - Add locking to prevent race condition where one job step
is ending for a user or job at the same time another job stepsis starting is ending for a user or job at the same time another job stepsis starting
and the user or job container is deleted from under the starting job step. and the user or job container is deleted from under the starting job step.
-- Fixed sh5util loop when there are no node-step files.
* Changes in Slurm 2.6.4 * Changes in Slurm 2.6.4
======================== ========================
......
...@@ -1024,6 +1024,14 @@ static int _merge_step_files(void) ...@@ -1024,6 +1024,14 @@ static int _merge_step_files(void)
H5Gclose(jgid_nodes); H5Gclose(jgid_nodes);
H5Gclose(jgid_step); H5Gclose(jgid_step);
} }
/* If we did not find the step 0
* bail out.
*/
if (stepx == 0
&& !found_files)
break;
stepx++; stepx++;
} }
......
...@@ -162,7 +162,7 @@ expect { ...@@ -162,7 +162,7 @@ expect {
} }
set hdf5_file "job_$job_id.h5" set hdf5_file "job_$job_id.h5"
set srun_pid [spawn $sh5util -j $job_id -l Node:TimeSeries -s Tasks -o $file_out] set srun_pid [spawn $sh5util -j $job_id -E -l Node:TimeSeries -s Tasks -o $file_out]
expect { expect {
timeout { timeout {
send_user "\nFAILURE: sh5util extract not responding\n" send_user "\nFAILURE: sh5util extract not responding\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment