Skip to content
Snippets Groups Projects
Commit 88dab83f authored by Marshall Garey's avatar Marshall Garey Committed by Brian Christiansen
Browse files

Restore dependent job pointers on slurmctld startup to avoid race

dep_ptr->job_ptr is set in update_job_dependency() and in
test_job_dependency(), and is required to test for circular dependencies
in _scan_depend(). On slurmctld startup, we weren't restoring that
because it would just be set in test_job_dependency(), which is
called whenever Slurm tries to schedule a job. However, if a job
dependency was updated before that then dep_ptr->job_ptr wasn't
initialized for all jobs, and therefore it was possible to create a
circular dependency.

Bug 8492
parent 6fca2001
No related branches found
No related tags found
No related merge requests found
Loading
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