logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harper, Allen \(AHARPER\)" <AHAR...@arinc.com>
Subject Appender, ErrorHanlder fail over deadlock
Date Fri, 04 Mar 2005 18:32:35 GMT
I have found and proved that Log4J does have a deadlock situation in
it's appender failover logic. 

In a nutshell heres whats happening. The entire instance of the logger
is syncronized. (Actually the syncronized object is the Category object
from which the Logger is derived.) A caller makes a log call
Log.xxxx(), in this case the JDBC appender. If the database is down the
DB call throws which in turn calls the errorHandler, which in turn calls
back into the Logger (deadlock) to swap out the primary and backup

I guess what I'm going to do is to bust out another thread for the sole
purpose of handling failover logic.

Comments, input?

Al Harper

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

View raw message