From a6258d5c0521b9533652dc8d58deb3bf38c33c75 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Tue, 19 May 2009 17:26:36 +0000 Subject: [PATCH] bad logic to verify jobs running on node when it registers. missing check of bitmap before sending message to srun about missing step. --- src/slurmctld/job_mgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c index 90971339422..3516beb26c3 100644 --- a/src/slurmctld/job_mgr.c +++ b/src/slurmctld/job_mgr.c @@ -5447,7 +5447,8 @@ static void _purge_lost_batch_jobs(int node_inx, time_t now) while ((job_ptr = (struct job_record *) list_next(job_iterator))) { bool job_active = ((job_ptr->job_state == JOB_RUNNING) || (job_ptr->job_state == JOB_SUSPENDED)); - if (!job_active) + if ((!job_active) || + (!bit_test(job_ptr->node_bitmap, node_inx))) continue; if (job_ptr->batch_flag == 0) { _notify_srun_missing_step(job_ptr, node_inx, now); -- GitLab