Skip to content
Snippets Groups Projects
Commit 2376bcdb authored by Brian Christiansen's avatar Brian Christiansen
Browse files

Don't restore job_id_sequence from another cluster

When a federated cluster reads job state it should only restore the
job_id_sequence from jobs that originated from it and not from remote
clusters.
parent e8d82287
No related branches found
No related tags found
No related merge requests found
......@@ -1981,8 +1981,12 @@ static int _load_job_state(Buf buffer, uint16_t protocol_version)
lowest_prio = MIN(lowest_prio, priority);
}
 
/* base job_id_sequence on local job id */
local_job_id = fed_mgr_get_local_id(job_id);
/* Base job_id_sequence off of local job id but only if the job
* originated from this cluster -- so that the local job id of a
* different cluster isn't restored here. */
if (!job_fed_details ||
!xstrcmp(job_fed_details->origin_str, slurmctld_conf.cluster_name))
local_job_id = fed_mgr_get_local_id(job_id);
if (job_id_sequence <= local_job_id)
job_id_sequence = local_job_id + 1;
 
......
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