avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Banachowski (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AVRO-132) Fix multi-threading race condition when threads share schema objects
Date Fri, 02 Oct 2009 19:13:23 GMT

     [ https://issues.apache.org/jira/browse/AVRO-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Scott Banachowski updated AVRO-132:

    Attachment: AVRO-132.patch

patch with bug fix (patch also fixes some typos in comments, and marks some functions const).

> Fix multi-threading race condition when threads share schema objects
> --------------------------------------------------------------------
>                 Key: AVRO-132
>                 URL: https://issues.apache.org/jira/browse/AVRO-132
>             Project: Avro
>          Issue Type: Bug
>          Components: c++
>            Reporter: Scott Banachowski
>            Assignee: Scott Banachowski
>         Attachments: AVRO-132.patch
> This bug was discovered when using the same avro schema object to decode many messages
in parallel.  
> A reference count used to manage the some pointers used by the schema was not atomic,
so race conditions caused them to be decremented more than they were incremented (and thus,
> The solution is to use atomic counters for references, and by switching to boost::shared_ptr,
we get this. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message