[logback-dev] [JIRA] (LOGBACK-1391) indefinite wait on AsyncAppenderBase.stop
QOS.CH (JIRA)
noreply-jira at qos.ch
Thu Mar 22 14:20:00 CET 2018
Jamie created LOGBACK-1391:
------------------------------
Summary: indefinite wait on AsyncAppenderBase.stop
Key: LOGBACK-1391
URL: https://jira.qos.ch/browse/LOGBACK-1391
Project: logback
Issue Type: Bug
Components: logback-classic, logback-core
Affects Versions: 1.2.3
Environment: Linux
Reporter: Jamie
Assignee: Logback dev list
We have a multitenant application. When one "instance" is shutdown, it called logbackLogger.detactAndStopAllAppenders(). This function appears to wait indefinitely. See stack trace further below.
public static synchronized void removeAndStopAllAppenders(String loggerName) \{
ch.qos.logback.classic.Logger logbackLogger = getLogger(loggerName);
if (logbackLogger != null) \{
logbackLogger.detachAndStopAllAppenders();
loggers.clear();
}
}
ool-98202-thread-7 - priority:5 - threadId:0x000000001c4b5000 - nativeId:0x2090 - state:TIMED_WAITING
stackTrace:
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.$$YJP$$wait(Native Method)
at java.lang.Object.wait(Object.java)
at java.lang.Thread.join(Thread.java:1257)
- locked <0x00000004f21db758> (a ch.qos.logback.core.AsyncAppenderBase$Worker)
at ch.qos.logback.core.AsyncAppenderBase.stop(AsyncAppenderBase.java:133)
at ch.qos.logback.core.spi.AppenderAttachableImpl.detachAndStopAllAppenders(AppenderAttachableImpl.java:107)
at ch.qos.logback.classic.Logger.detachAndStopAllAppenders(Logger.java:206)
at com.stimulus.util.av.b(MailArchiva:67)
- locked <0x00000004ef6271d8> (a java.lang.Class for com.stimulus.util.av)
at com.stimulus.archiva.domain.ba.ae(MailArchiva:943)
at com.stimulus.archiva.domain.ba.e(MailArchiva:209)
at com.stimulus.archiva.domain.Application.al(MailArchiva:776)
at com.stimulus.archiva.domain.Application.ae(MailArchiva:691)
at com.stimulus.archiva.domain.j$a.run(MailArchiva:493)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
More information about the logback-dev
mailing list