Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9ACFDEF60 for ; Thu, 21 Feb 2013 15:00:24 +0000 (UTC) Received: (qmail 97948 invoked by uid 500); 21 Feb 2013 15:00:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 97805 invoked by uid 500); 21 Feb 2013 15:00:23 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 97281 invoked by uid 99); 21 Feb 2013 15:00:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2013 15:00:23 +0000 Date: Thu, 21 Feb 2013 15:00:23 +0000 (UTC) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOGGING-119) deadlock on re-registration of logger MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOGGING-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13583246#comment-13583246 ] Gary Gregory commented on LOGGING-119: -------------------------------------- and it's February 2013! ;) I think we can bump the target to 1.4 without controversy. The super conservative route would be to # release 1.1.2 as is, no platform changes. # update the platform requirement to whatever we agree on for 1.2, Java 1.4, 5, 6, or 7. > deadlock on re-registration of logger > ------------------------------------- > > Key: LOGGING-119 > URL: https://issues.apache.org/jira/browse/LOGGING-119 > Project: Commons Logging > Issue Type: Bug > Affects Versions: 1.1.1 > Environment: Java 1.5, Windows > Reporter: Nitzan Niv > Fix For: 1.1.2 > > Attachments: BugDeadlock.java, Patch-WeakHashtable-1.1.1.txt > > > Reached a deadlock inside common-logging while concurrently re-deploying 2 WARs. > In each WAR there is an attempt to get a logger: > private final Log logger = LogFactory.getLog(ContextLoader.class); > Thread dump: > [deadlocked thread] Thread-96: > ----------------------------- > Thread 'Thread-96' is waiting to acquire lock 'java.lang.ref.ReferenceQueue@5266e0' that is held by thread 'Thread-102' > Stack trace: > ------------ > org.apache.commons.logging.impl.WeakHashtable.purge(WeakHashtable.java:323) > org.apache.commons.logging.impl.WeakHashtable.rehash(WeakHashtable.java:312) > java.util.Hashtable.put(Hashtable.java:414) > org.apache.commons.logging.impl.WeakHashtable.put(WeakHashtable.java:242) > org.apache.commons.logging.LogFactory.cacheFactory(LogFactory.java:1004) > org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:657) > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) > org.springframework.web.context.ContextLoader.(ContextLoader.java:145) > > [deadlocked thread] Thread-102: > ------------------------------ > Thread 'Thread-102' is waiting to acquire lock 'org.apache.commons.logging.impl. > WeakHashtable@1e02138' that is held by thread 'Thread-96' > Stack trace: > ------------ > java.util.Hashtable.remove(Hashtable.java:437) > org.apache.commons.logging.impl.WeakHashtable.purgeOne(WeakHashtable.java:338) > org.apache.commons.logging.impl.WeakHashtable.put(WeakHashtable.java:238) > org.apache.commons.logging.LogFactory.cacheFactory(LogFactory.java:1004) > org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:657) > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) > org.springframework.web.context.ContextLoader.(ContextLoader.java:145) -- 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