avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vincent ye (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1773) Infinite loop caused by race condition
Date Tue, 12 Jan 2016 19:17:39 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15094564#comment-15094564
] 

vincent ye commented on AVRO-1773:
----------------------------------

Thank you for taking time to take care of it.

> Infinite loop caused by race condition
> --------------------------------------
>
>                 Key: AVRO-1773
>                 URL: https://issues.apache.org/jira/browse/AVRO-1773
>             Project: Avro
>          Issue Type: Sub-task
>          Components: java
>    Affects Versions: 1.7.7
>            Reporter: vincent ye
>            Priority: Critical
>             Fix For: 1.7.8, 1.8.0
>
>
> org.apache.avro.LogicalTypes#fromSchemaIgnoreInvalid lookups and update  CACHE. CACHE
is backed by hashmap without synchronization. In a multithreaded environment, it causes a
infinite loop in hashmap lookup. The race condition problem is described in the following
blog http://mailinator.blogspot.com/2009/06/beautiful-race-condition.html.
> I experience this infinite loop in Spark jobs with high concurrency.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message