Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77BCDE791 for ; Thu, 13 Dec 2012 21:54:12 +0000 (UTC) Received: (qmail 83184 invoked by uid 500); 13 Dec 2012 21:54:12 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 83141 invoked by uid 500); 13 Dec 2012 21:54:12 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 83131 invoked by uid 99); 13 Dec 2012 21:54:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 21:54:12 +0000 Date: Thu, 13 Dec 2012 21:54:12 +0000 (UTC) From: =?utf-8?Q?St=C3=A9phane_Landelle_=28JIRA=29?= To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AVRO-1220) Dead lock MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 St=C3=A9phane Landelle created AVRO-1220: --------------------------------------- Summary: Dead lock=20 Key: AVRO-1220 URL: https://issues.apache.org/jira/browse/AVRO-1220 Project: Avro Issue Type: Bug Components: java Affects Versions: 1.7.3 Environment: OSX, JDK6 Reporter: St=C3=A9phane Landelle I experience a dead lock when running multiple DataFileReader in concurrent= threads. See test case here: https://github.com/slandelle/avro-test AvroBinaryEncodingTest randomly stalls about 50% of the time. A thread dump would show a dead lock in org.apache.avro.io.parsing.Symbol c= lass initialization. IHMO, the problem is that the Symbol class has static final members that ar= e instances of Symbol subclasses. I built a custom version of avro where all the constants (NULL, BOOLEAN, IN= T, etc) have been extracted into a dedicated class outside of Symbol hierar= chy and the test case now runs fine. Cheers, St=C3=A9phane Landelle -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira