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
ef832e0f
Commit
ef832e0f
authored
2 years ago
by
Jorge Camarero Vera
Browse files
Options
Downloads
Patches
Plain Diff
Caught the No drive found in configuration exception
parent
50c96662
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ReleaseNotes.md
+2
-1
2 additions, 1 deletion
ReleaseNotes.md
tapeserver/daemon/TapeDaemon.cpp
+15
-10
15 additions, 10 deletions
tapeserver/daemon/TapeDaemon.cpp
with
17 additions
and
11 deletions
ReleaseNotes.md
+
2
−
1
View file @
ef832e0f
...
...
@@ -5,7 +5,8 @@
-
cta/CTA#41 - Delete verification_status of tape when tape is reclaimed
-
cta/CTA#153 - Allow verification status to be cleared with cta-admin
-
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
### Bug fixes
-
cta/CTA#48 - Catch tape server exception and log an error instead
-
cta/CTA#161 - Fix bug when using temporary tables with PostgreSQL
# v4.7.12-1
...
...
This diff is collapsed.
Click to expand it.
tapeserver/daemon/TapeDaemon.cpp
+
15
−
10
View file @
ef832e0f
...
...
@@ -14,18 +14,20 @@
* granted to it by virtue of its status as an Intergovernmental Organization or
* submit itself to any jurisdiction.
*/
#include
<limits.h>
#include
<sys/prctl.h>
#include
<google/protobuf/service.h>
#include
"TapeDaemon.hpp"
#include
"common/exception/Errnum.hpp"
#include
"common/exception/NoSuchObject.hpp"
#include
"common/utils/utils.hpp"
#include
"tapeserver/daemon/CommandLineParams.hpp"
#include
"ProcessManager.hpp"
#include
"SignalHandler.hpp"
#include
"DriveHandler.hpp"
#include
"MaintenanceHandler.hpp"
#include
<google/protobuf/service.h>
#include
<limits.h>
#include
<sys/prctl.h>
#include
"tapeserver/daemon/DriveHandler.hpp"
#include
"tapeserver/daemon/MaintenanceHandler.hpp"
#include
"tapeserver/daemon/ProcessManager.hpp"
#include
"tapeserver/daemon/SignalHandler.hpp"
#include
"tapeserver/daemon/TapeDaemon.hpp"
namespace
cta
{
namespace
tape
{
namespace
daemon
{
...
...
@@ -49,6 +51,9 @@ TapeDaemon::~TapeDaemon() {
int
TapeDaemon
::
main
()
{
try
{
exceptionThrowingMain
();
}
catch
(
cta
::
exception
::
NoSuchObject
&
ex
)
{
m_log
(
log
::
ERR
,
"Aborting cta-taped. Not starting because: "
+
ex
.
getMessage
().
str
());
return
2
;
}
catch
(
cta
::
exception
::
Exception
&
ex
)
{
// Log the error
m_log
(
log
::
ERR
,
"Aborting cta-taped on uncaught exception. Stack trace follows."
,
{{
"Message"
,
ex
.
getMessage
().
str
()}});
...
...
@@ -73,8 +78,8 @@ std::string cta::tape::daemon::TapeDaemon::getHostName() const {
// exceptionThrowingMain
//------------------------------------------------------------------------------
void
cta
::
tape
::
daemon
::
TapeDaemon
::
exceptionThrowingMain
()
{
if
(
m_globalConfiguration
.
driveConfigs
.
empty
())
throw
cta
::
exception
::
Exception
(
"No drive found in configuration"
);
if
(
m_globalConfiguration
.
driveConfigs
.
empty
())
throw
cta
::
exception
::
NoSuchObject
(
"No drive found in configuration"
);
// Process must be able to change user now and should be permitted to perform
// raw IO in the future
...
...
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