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
01ba1bcb
Commit
01ba1bcb
authored
6 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[os-generic-queues] Implements RetrieveQueue::trimContainerIfNeeded()
parent
fd569728
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
objectstore/RetrieveQueueAlgorithms.cpp
+10
-13
10 additions, 13 deletions
objectstore/RetrieveQueueAlgorithms.cpp
with
10 additions
and
13 deletions
objectstore/RetrieveQueueAlgorithms.cpp
+
10
−
13
View file @
01ba1bcb
...
...
@@ -302,31 +302,28 @@ void ContainerTraits<RetrieveQueue>::
trimContainerIfNeeded
(
Container
&
cont
,
ScopedExclusiveLock
&
contLock
,
const
ContainerIdentifier
&
cId
,
log
::
LogContext
&
lc
)
{
throw
std
::
runtime_error
(
"10 Not implemented."
);
#if 0
if(cont.isEmpty()) {
// The current implementation is done unlocked.
if
(
cont
.
isEmpty
())
{
// The current implementation is done unlocked
contLock
.
release
();
try
{
// The queue should be removed as it is empty
.
// The queue should be removed as it is empty
RootEntry
re
(
cont
.
m_objectStore
);
ScopedExclusiveLock
rexl
(
re
);
re
.
fetch
();
re.remove
Archi
veQueueAndCommit(cId, QueueType::LiveJobs, lc);
re
.
remove
Retrie
veQueueAndCommit
(
cId
,
QueueType
::
LiveJobs
,
lc
);
log
::
ScopedParamContainer
params
(
lc
);
params.add("
tapepool
", cId)
params
.
add
(
"
vid
"
,
cId
)
.
add
(
"queueObject"
,
cont
.
getAddressIfSet
());
lc.log(log::INFO, "In ContainerTraits<
Archi
veQueue>::trimContainerIfNeeded(): deleted empty queue");
} catch
(cta::exception::Exception &ex) {
lc
.
log
(
log
::
INFO
,
"In ContainerTraits<
Retrie
veQueue>::trimContainerIfNeeded(): deleted empty queue"
);
}
catch
(
cta
::
exception
::
Exception
&
ex
)
{
log
::
ScopedParamContainer
params
(
lc
);
params.add("
tapepool
", cId)
params
.
add
(
"
vid
"
,
cId
)
.
add
(
"queueObject"
,
cont
.
getAddressIfSet
())
.
add
(
"Message"
,
ex
.
getMessageValue
());
lc.log(log::INFO, "In ContainerTraits<
Archi
veQueue>::trimContainerIfNeeded(): could not delete a presumably empty queue");
lc
.
log
(
log
::
INFO
,
"In ContainerTraits<
Retrie
veQueue>::trimContainerIfNeeded(): could not delete a presumably empty queue"
);
}
//queueRemovalTime += localQueueRemovalTime = t.secs(utils::Timer::resetCounter);
}
#endif
}
}}
// namespace cta::objectstore
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