logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jinder Aujla (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-275) The send method in FlumeAvroManager quietly loses messages on a failed rpcClient connection
Date Fri, 07 Jun 2013 18:38:22 GMT
Jinder Aujla created LOG4J2-275:
-----------------------------------

             Summary: The send method in FlumeAvroManager quietly loses messages on a failed
rpcClient connection
                 Key: LOG4J2-275
                 URL: https://issues.apache.org/jira/browse/LOG4J2-275
             Project: Log4j 2
          Issue Type: Bug
          Components: Flume Appender
    Affects Versions: 2.0-beta6
            Reporter: Jinder Aujla


In the FlumeAvroManager in the send method, the code looks like this:

@Override
    public synchronized void send(final Event event)  {
        if (rpcClient == null) {
            rpcClient = connect(agents, retries, connectTimeout, requestTimeout);
        }

        if (rpcClient != null) {
            try {
                rpcClient.append(event);
            } catch (final Exception ex) {.........

if the rpcClient is null and the connect fails the rpcClient is still null and the method
returns losing the event. I think this is a bug.

Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message