Skip to content
Snippets Groups Projects
Commit 81e73212 authored by Moe Jette's avatar Moe Jette
Browse files

Properly handle the removal of nodes from slurm.conf that had

been allocated to a job (previously aborted slurmctld).
parent 441dc9c6
No related branches found
No related tags found
No related merge requests found
...@@ -1249,6 +1249,11 @@ static int _rm_job_from_nodes(struct node_cr_record *node_cr_ptr, ...@@ -1249,6 +1249,11 @@ static int _rm_job_from_nodes(struct node_cr_record *node_cr_ptr,
} }
i_first = bit_ffs(select_ptr->node_bitmap); i_first = bit_ffs(select_ptr->node_bitmap);
i_last = bit_fls(select_ptr->node_bitmap); i_last = bit_fls(select_ptr->node_bitmap);
if (i_first < 0) {
error("job %u allocated nodes which have been removed "
"from slurm.conf", job_ptr->job_id);
return SLURM_ERROR;
}
for (i = i_first; i <= i_last; i++) { for (i = i_first; i <= i_last; i++) {
if (bit_test(select_ptr->node_bitmap, i) == 0) if (bit_test(select_ptr->node_bitmap, i) == 0)
continue; continue;
......
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