falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkatesh Seetharam (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-666) Add Alerts for unrecoverable failures
Date Fri, 12 Sep 2014 20:13:33 GMT

    [ https://issues.apache.org/jira/browse/FALCON-666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14132025#comment-14132025
] 

Venkatesh Seetharam commented on FALCON-666:
--------------------------------------------

bq. Drop changes from the patch
only helping the committer :-)

bq. Are there no default value for alerting.plugins added to the startup.properties ?
There are defaults.

{code}
org.apache.falcon.plugin.ChainableMonitoringPlugin#ChainableMonitoringPlugin
    public ChainableMonitoringPlugin() {
        initializeMonitoringPlugins();
        initializeAlertingPlugins();
    }

    private void initializeAlertingPlugins() {
        String pluginClasses = StartupProperties.get().
                getProperty("alerting.plugins", DefaultMonitoringPlugin.class.getName());
        try {
            for (String pluginClass : pluginClasses.split(",")) {
                AlertingPlugin plugin = ReflectionUtils.getInstanceByClassName(pluginClass.trim());
                alertingPlugins.add(plugin);
                LOG.info("Registered Alerting Plugin {}", pluginClass);
            }
        } catch (FalconException e) {
            alertingPlugins = Arrays.asList((AlertingPlugin) new DefaultMonitoringPlugin());
            LOG.error("Unable to initialize alerting.plugins: {}", pluginClasses, e);
        }
    }
{code}

> Add Alerts for unrecoverable failures
> -------------------------------------
>
>                 Key: FALCON-666
>                 URL: https://issues.apache.org/jira/browse/FALCON-666
>             Project: Falcon
>          Issue Type: Improvement
>          Components: metrics
>    Affects Versions: 0.6
>            Reporter: Venkatesh Seetharam
>            Assignee: Venkatesh Seetharam
>            Priority: Critical
>              Labels: alerts
>             Fix For: 0.6
>
>         Attachments: FALCON-666-v1.patch, FALCON-666.patch
>
>
> Defaults to logging alerts to a file that can be monitored.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message