Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
141a3145
Commit
141a3145
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Make handshake between primary and backup controller cleaner.
parent
79f1eaa8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/slurmctld/backup.c
+1
-0
1 addition, 0 deletions
src/slurmctld/backup.c
src/slurmctld/controller.c
+5
-2
5 additions, 2 deletions
src/slurmctld/controller.c
with
6 additions
and
2 deletions
src/slurmctld/backup.c
+
1
−
0
View file @
141a3145
...
...
@@ -357,6 +357,7 @@ static int _background_process_msg(slurm_msg_t * msg)
}
else
if
(
super_user
&&
(
msg
->
msg_type
==
REQUEST_CONTROL
))
{
debug3
(
"Ignoring RPC: REQUEST_CONTROL"
);
error_code
=
ESLURM_DISABLED
;
}
else
{
error
(
"Invalid RPC received %d from uid %u"
,
msg
->
msg_type
,
uid
);
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/controller.c
+
5
−
2
View file @
141a3145
...
...
@@ -1051,11 +1051,14 @@ static int _shutdown_backup_controller(int wait_time)
error
(
"_shutdown_backup_controller:send/recv: %m, %s"
,
TIME_STR
);
return
SLURM_ERROR
;
}
if
(
rc
)
{
if
(
rc
==
ESLURM_DISABLED
)
debug
(
"backup controller responding"
);
else
if
(
rc
==
0
)
debug
(
"backup controller has relinquished control"
);
else
{
error
(
"_shutdown_backup_controller: %s"
,
slurm_strerror
(
rc
));
return
SLURM_ERROR
;
}
debug
(
"backup controller has relinquished control"
);
/* FIXME: Ideally the REQUEST_CONTROL RPC does not return until all
* other activity has ceased and the state has been saved. That is
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment