[
https://issues.apache.org/jira/browse/AVRO-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575061#comment-13575061
]
Hudson commented on AVRO-1220:
------------------------------
Integrated in AvroJava #346 (See [https://builds.apache.org/job/AvroJava/346/])
AVRO-1220. Java: Fix a deadlock when reading by replacing parser symbol
constructors with factory methods. (Revision 1444297)
Result = SUCCESS
cutting :
Files :
* /avro/trunk/CHANGES.txt
*
/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/io/parsing/JsonGrammarGenerator.java
*
/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/io/parsing/ResolvingGrammarGenerator.java
*
/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/io/parsing/Symbol.java
*
/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/io/parsing/ValidatingGrammarGenerator.java
> Dead lock
> ----------
>
> 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éphane Landelle
> Assignee: Doug Cutting
> Fix For: 1.7.4
>
> Attachments: AVRO-1220.txt, AVRO-1220.txt
>
>
> 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
> class initialization.
> IHMO, the problem is that the Symbol class has static final members that are
> instances of Symbol subclasses.
> I built a custom version of avro where all the constants (NULL, BOOLEAN, INT,
> etc) have been extracted into a dedicated class outside of Symbol hierarchy
> and the test case now runs fine.
> Cheers,
> Stéphane Landelle
--
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