karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Created] (KARAF-5192) Decanter appenders should set inLogAppender MDC to avoid recursion
Date Fri, 09 Jun 2017 12:36:18 GMT
Jean-Baptiste Onofré created KARAF-5192:
-------------------------------------------

             Summary: Decanter appenders should set inLogAppender MDC to avoid recursion
                 Key: KARAF-5192
                 URL: https://issues.apache.org/jira/browse/KARAF-5192
             Project: Karaf
          Issue Type: Improvement
          Components: decanter
    Affects Versions: decanter-1.3.0
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: decanter-1.4.0


When an appender (for instance elasticsearch or cassandra) can't send the collected data to
the backend (for instance due to network issue), and the log collector is installed, we have
an infinite loop: the appender throws an exception (a simple {{LOG.warn()}}), trapped by the
log collector which tries to post the event,  creating the appender exception again, and so
on.

The Decanter appenders should set the {{inLogAppender}} MDC (filtered by the log collector)
to avoid this infinite loop.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message