Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CastorScript
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
atlas-tdaq-software
CastorScript
Commits
fd5a152e
Commit
fd5a152e
authored
6 years ago
by
Fabrice Le Goff
Browse files
Options
Downloads
Patches
Plain Diff
critical log instead of crashing in case of deleted .COPYING file
parent
f813ffdc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#507600
failed
6 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Script/CopyThread.py
+8
-2
8 additions, 2 deletions
Script/CopyThread.py
with
8 additions
and
2 deletions
Script/CopyThread.py
+
8
−
2
View file @
fd5a152e
...
@@ -359,8 +359,14 @@ class CopyThread(threading.Thread):
...
@@ -359,8 +359,14 @@ class CopyThread(threading.Thread):
self
.
logger
.
critical
(
'
No connection to Metadata database: database will not be updated for file %s
'
,
DataFile
)
self
.
logger
.
critical
(
'
No connection to Metadata database: database will not be updated for file %s
'
,
DataFile
)
##### Copy successfull: rename .data.COPYING in .data.COPIED #####
##### Copy successfull: rename .data.COPYING in .data.COPIED #####
os
.
rename
(
DataFile
+
Constants
.
copying_ext
,
try
:
DataFile
+
Constants
.
copied_ext
)
os
.
rename
(
DataFile
+
Constants
.
copying_ext
,
DataFile
+
Constants
.
copied_ext
)
except
OSError
as
exc
:
if
exc
.
errno
==
errno
.
ENOENT
:
self
.
logger
.
critical
(
'
error renaming %s: not present (deleted by external cause)
'
,
DataFile
+
Constants
.
copying_ext
)
else
:
raise
exc
if
self
.
conf
.
DdmMonitoringEnabled
:
if
self
.
conf
.
DdmMonitoringEnabled
:
self
.
publishInDdmMonitoring
(
self
.
publishInDdmMonitoring
(
...
...
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