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
5a0d8e36
Commit
5a0d8e36
authored
5 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
Lowered log level where not useful.
Avoided counting an error for files hitting end of tape.
parent
841ce35b
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
objectstore/BackendPopulator.cpp
+1
-1
1 addition, 1 deletion
objectstore/BackendPopulator.cpp
tapeserver/castor/tape/tapeserver/daemon/TapeWriteTask.cpp
+3
-1
3 additions, 1 deletion
tapeserver/castor/tape/tapeserver/daemon/TapeWriteTask.cpp
with
4 additions
and
2 deletions
objectstore/BackendPopulator.cpp
+
1
−
1
View file @
5a0d8e36
...
...
@@ -70,7 +70,7 @@ BackendPopulator::~BackendPopulator() throw() {
agent
.
commit
();
params
.
add
(
"agentObject"
,
agent
.
getAddressIfSet
())
.
add
(
"ownedObjectCount"
,
agent
.
getOwnershipList
().
size
());
m_lc
.
log
(
log
::
WARNING
,
"In BackendPopulator::~BackendPopulator(): not deleting non-empty agent object, left for garbage collection."
);
m_lc
.
log
(
log
::
INFO
,
"In BackendPopulator::~BackendPopulator(): not deleting non-empty agent object, left for garbage collection."
);
return
;
}
agent
.
removeAndUnregisterSelf
(
m_lc
);
...
...
This diff is collapsed.
Click to expand it.
tapeserver/castor/tape/tapeserver/daemon/TapeWriteTask.cpp
+
3
−
1
View file @
5a0d8e36
...
...
@@ -236,19 +236,21 @@ namespace daemon {
// We also change the log level to INFO for the case of end of tape.
int
errorCode
=
666
;
// TODO - Remove error code
int
errorLevel
=
cta
::
log
::
ERR
;
bool
doReportJobError
=
true
;
try
{
const
cta
::
exception
::
Errnum
&
errnum
=
dynamic_cast
<
const
cta
::
exception
::
Errnum
&>
(
e
);
if
(
ENOSPC
==
errnum
.
errorNumber
())
{
errorCode
=
ENOSPC
;
errorLevel
=
cta
::
log
::
INFO
;
doReportJobError
=
false
;
}
}
catch
(...)
{}
LogContext
::
ScopedParam
sp
(
lc
,
Param
(
"exceptionCode"
,
errorCode
));
LogContext
::
ScopedParam
sp1
(
lc
,
Param
(
"exceptionMessage"
,
e
.
getMessageValue
()));
lc
.
log
(
errorLevel
,
"An error occurred for this file. End of migrations."
);
circulateMemBlocks
();
reportPacker
.
reportFailedJob
(
std
::
move
(
m_archiveJob
),
e
,
lc
);
if
(
doReportJobError
)
reportPacker
.
reportFailedJob
(
std
::
move
(
m_archiveJob
),
e
,
lc
);
//we throw again because we want TWST to stop all tasks from execution
//and go into a degraded mode operation.
...
...
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