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
a6db7fd5
Commit
a6db7fd5
authored
9 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Improved the error handling when queuing a request to archive a file
parent
d6964584
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
scheduler/Scheduler.cpp
+15
-1
15 additions, 1 deletion
scheduler/Scheduler.cpp
with
15 additions
and
1 deletion
scheduler/Scheduler.cpp
+
15
−
1
View file @
a6db7fd5
...
...
@@ -549,7 +549,21 @@ void cta::Scheduler::queueArchiveToFileRequest(
remoteFile
,
archiveFile
,
priority
);
m_db
.
queue
(
rqst
);
m_ns
.
createFile
(
requester
,
archiveFile
,
0666
);
try
{
m_ns
.
createFile
(
requester
,
archiveFile
,
0666
);
}
catch
(
std
::
exception
&
nsEx
)
{
// Try our best to cleanup the scheduler database. The garbage collection
// logic will try again if we fail.
try
{
m_db
.
deleteArchiveRequest
(
requester
,
archiveFile
);
}
catch
(...)
{
}
// Whether or not we were able to clean up the scheduler database, the real
// problem here was the failure to create an entry in the NS
throw
nsEx
;
}
m_db
.
fileEntryCreatedInNS
(
archiveFile
);
}
...
...
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