Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
92a6f48d
Commit
92a6f48d
authored
1 year ago
by
Jorge Camarero Vera
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Avoid looping in Cleaning Up state"
parent
77db33eb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ReleaseNotes.md
+1
-0
1 addition, 0 deletions
ReleaseNotes.md
tapeserver/daemon/DriveHandler.cpp
+4
-0
4 additions, 0 deletions
tapeserver/daemon/DriveHandler.cpp
with
5 additions
and
0 deletions
ReleaseNotes.md
+
1
−
0
View file @
92a6f48d
...
...
@@ -11,6 +11,7 @@
-
cta/CTA#473 - Fix some code smells from repack expansion changes.
-
cta/CTA#494 - Workaround for scheduler crashing
-
cta/CTA#500 - Safely handle empty shards in object store
-
cta/CTA#509 - Avoid looping in cleaning up state
### Features
-
cta/CTA#490 - Improve code quality in the Physical Library catalogue code
...
...
This diff is collapsed.
Click to expand it.
tapeserver/daemon/DriveHandler.cpp
+
4
−
0
View file @
92a6f48d
...
...
@@ -902,6 +902,8 @@ int DriveHandler::runChild() {
std
::
set
<
SessionState
>
statesRequiringCleaner
=
{
SessionState
::
Mounting
,
SessionState
::
Running
,
SessionState
::
Unmounting
};
if
(
m_previousSession
==
PreviousSession
::
Crashed
&&
statesRequiringCleaner
.
count
(
m_previousState
))
{
// Set session type to cleanup
m_sessionType
=
SessionType
::
Cleanup
;
if
(
m_previousVid
.
empty
())
{
int
logLevel
=
log
::
ERR
;
std
::
string
errorMsg
=
"In DriveHandler::runChild(): Should run cleaner but VID is missing. Putting the drive down."
;
...
...
@@ -1171,6 +1173,8 @@ SubprocessHandler::ProcessingStatus DriveHandler::shutdown() {
driveInfo
.
driveName
=
m_driveConfig
.
unitName
;
driveInfo
.
logicalLibrary
=
m_driveConfig
.
logicalLibrary
;
driveInfo
.
host
=
cta
::
utils
::
getShortHostname
();
// Set session type to cleanup
m_sessionType
=
SessionType
::
Cleanup
;
scheduler
->
reportDriveStatus
(
driveInfo
,
cta
::
common
::
dataStructures
::
MountType
::
NoMount
,
cta
::
common
::
dataStructures
::
DriveStatus
::
CleaningUp
,
lc
);
log
::
ScopedParamContainer
scoped
(
m_processManager
.
logContext
());
...
...
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