Project

General

Profile

Bug #22897

artdaq_ganglia_plugin crashes application if configFile does not exist

Added by Eric Flumerfelt 2 months ago. Updated 13 days ago.

Status:
Reviewed
Priority:
Normal
Category:
-
Target version:
-
Start date:
07/10/2019
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

The ganglia_metric initialization can call exit on an application if there is a problem with the configFile parameter (doesn't exist, no permissions, etc.). It prints a message to stderr, which can be easily lost and can lead to user frustration trying to determine what went wrong.

History

#1 Updated by Eric Flumerfelt 2 months ago

  • Assignee set to Eric Flumerfelt
  • Status changed from New to Resolved

Fixes on artdaq-utilities-ganglia-plugin:bugfix/22897_GangliaMetric_ThrowExceptionOnInit

#2 Updated by Ron Rechenmacher 13 days ago

  • Status changed from Resolved to Reviewed

Ran demo with invalid configFile and got:

%MSG-e MetricManager:  Initializing 06-Sep-2019 08:06:14 CDT Booted MetricManager.cc:79
Exception caught in MetricManager::initialize, error loading plugin with name ganglia, cet::exception object caught:---- GangliaMetric BEGIN
  Configuration file /etc/ganxxxglia/gmond.conf does not exist!
---- GangliaMetric END
%MSG



Also available in: Atom PDF