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
e6ecdac0
Commit
e6ecdac0
authored
2 years ago
by
Jorge Camarero Vera
Browse files
Options
Downloads
Patches
Plain Diff
Change RecallTaskInjector::reserveSpaceForNextJobBatch error to warning
parent
ef832e0f
No related branches found
Branches containing commit
No related tags found
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/castor/tape/tapeserver/daemon/RecallTaskInjector.cpp
+13
-14
13 additions, 14 deletions
...rver/castor/tape/tapeserver/daemon/RecallTaskInjector.cpp
with
14 additions
and
14 deletions
ReleaseNotes.md
+
1
−
0
View file @
e6ecdac0
...
...
@@ -7,6 +7,7 @@
-
cta/CTA#173 - Update release notes and small changes to refactoring of operation tools cmd line parsing - Compatible with operations 0.4-95 or later
### Bug fixes
-
cta/CTA#48 - Catch tape server exception and log an error instead
-
cta/CTA#123 - Change some tape server errors into warnings
-
cta/CTA#161 - Fix bug when using temporary tables with PostgreSQL
# v4.7.12-1
...
...
This diff is collapsed.
Click to expand it.
tapeserver/castor/tape/tapeserver/daemon/RecallTaskInjector.cpp
+
13
−
14
View file @
e6ecdac0
...
...
@@ -159,19 +159,18 @@ bool RecallTaskInjector::testDiskSpaceReservationWorking() {
}
//------------------------------------------------------------------------------
//reserveSpaceForNextJobBatch
//
reserveSpaceForNextJobBatch
//------------------------------------------------------------------------------
bool
RecallTaskInjector
::
reserveSpaceForNextJobBatch
(
std
::
list
<
std
::
unique_ptr
<
cta
::
RetrieveJob
>>
&
nextJobBatch
)
{
bool
RecallTaskInjector
::
reserveSpaceForNextJobBatch
(
std
::
list
<
std
::
unique_ptr
<
cta
::
RetrieveJob
>>
&
nextJobBatch
)
{
cta
::
DiskSpaceReservationRequest
diskSpaceReservation
;
for
(
auto
&
job
:
nextJobBatch
)
{
for
(
auto
&
job
:
nextJobBatch
)
{
auto
diskSystemName
=
job
->
diskSystemName
();
if
(
diskSystemName
)
{
diskSpaceReservation
.
addRequest
(
diskSystemName
.
value
(),
job
->
archiveFile
.
fileSize
);
}
}
}
for
(
const
auto
&
reservation
:
diskSpaceReservation
)
{
for
(
const
auto
&
reservation
:
diskSpaceReservation
)
{
cta
::
log
::
ScopedParamContainer
spc
(
m_lc
);
spc
.
add
(
"diskSystemName"
,
reservation
.
first
);
spc
.
add
(
"bytes"
,
reservation
.
second
);
...
...
@@ -182,28 +181,28 @@ bool RecallTaskInjector::reserveSpaceForNextJobBatch(std::list<std::unique_ptr<c
try
{
ret
=
m_retrieveMount
.
reserveDiskSpace
(
diskSpaceReservation
,
m_lc
);
}
catch
(
std
::
out_of_range
&
)
{
//#1076 If the disk system for this mount was removed, process the jobs as if they had no disk system
//
#1076 If the disk system for this mount was removed, process the jobs as if they had no disk system
// (assuming only one disk system per mount)
for
(
auto
&
job
:
nextJobBatch
)
{
for
(
auto
&
job
:
nextJobBatch
)
{
job
->
diskSystemName
()
=
std
::
nullopt
;
}
m_lc
.
log
(
cta
::
log
::
WARNING
,
"In RecallTaskInjector::reserveSpaceForNextJobBatch(): Disk s
a
pce reservation failed "
"In RecallTaskInjector::reserveSpaceForNextJobBatch(): Disk sp
a
ce reservation failed "
"because disk system configuration has been removed, processing job batch as if it had no disk system"
);
return
true
;
}
if
(
!
ret
)
{
for
(
auto
&
jobptr
:
nextJobBatch
)
{
if
(
!
ret
)
{
for
(
auto
&
jobptr
:
nextJobBatch
)
{
m_jobs
.
push_back
(
std
::
unique_ptr
<
cta
::
RetrieveJob
>
(
jobptr
.
release
()));
}
m_retrieveMount
.
requeueJobBatch
(
m_jobs
,
m_lc
);
m_files
=
0
;
m_bytes
=
0
;
m_lc
.
log
(
cta
::
log
::
ERR
,
"In RecallTaskInjector::reserveSpaceForNextJobBatch(): Disk space reservation failed, requeued all pending jobs"
);
m_lc
.
log
(
cta
::
log
::
WARNING
,
"In RecallTaskInjector::reserveSpaceForNextJobBatch(): Disk space reservation failed, "
"requeued all pending jobs"
);
m_diskSpaceReservationFailed
=
true
;
}
else
{
}
else
{
m_lc
.
log
(
cta
::
log
::
INFO
,
"In RecallTaskInjector::reserveSpaceForNextJobBatch(): Disk space reservation for next job batch succeeded"
);
}
return
ret
;
...
...
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