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

Fix issue with NODE_STATE_COMPLETING, could start job on node before

epilog completed.
parent 04aac1b4
No related branches found
No related tags found
No related merge requests found
This file describes changes in recent versions of SLURM. It primarily
documents those changes that are of interest to users and admins.
* Changes in SLURM 0.7.0-pre7
=============================
-- Fix issue with NODE_STATE_COMPLETING, could start job on node before
epilog completed.
* Changes in SLURM 0.7.0-pre6
=============================
-- Added support for task affinity for binding tasks to CPUs (Daniel
......
......@@ -1461,7 +1461,8 @@ static void _node_did_resp(struct node_record *node_ptr)
xfree(node_ptr->reason);
}
base_state = node_ptr->node_state & NODE_STATE_BASE;
if (base_state == NODE_STATE_IDLE) {
if ((base_state == NODE_STATE_IDLE)
&& ((node_flags & NODE_STATE_COMPLETING) == 0)) {
bit_set (idle_node_bitmap, node_inx);
bit_set (share_node_bitmap, node_inx);
}
......@@ -1857,7 +1858,8 @@ void make_node_idle(struct node_record *node_ptr,
node_ptr->node_state = NODE_STATE_ALLOCATED | node_flags;
} else {
node_ptr->node_state = NODE_STATE_IDLE | node_flags;
if ((node_flags & NODE_STATE_NO_RESPOND) == 0)
if (((node_flags & NODE_STATE_NO_RESPOND) == 0)
&& ((node_flags & NODE_STATE_COMPLETING) == 0))
bit_set(idle_node_bitmap, inx);
}
}
......
......@@ -173,7 +173,7 @@ static int _build_bitmaps(void)
job_cnt = node_record_table_ptr[i].run_job_cnt +
node_record_table_ptr[i].comp_job_cnt;
if ((base_state == NODE_STATE_IDLE)
if (((base_state == NODE_STATE_IDLE) && (job_cnt == 0))
|| (base_state == NODE_STATE_DOWN))
bit_set(idle_node_bitmap, i);
if ((base_state == NODE_STATE_IDLE)
......
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