[
https://issues.apache.org/jira/browse/AVRO-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sasha Pachev updated AVRO-1110:
-------------------------------
Attachment: errors.patch
Proposed fix is attached. This can be fixed under the AVRO hood to make the
thread safety issue transparent to the user as well, but it requires some
infrastructure changes to add a thread descriptor. I was adapting AVRO to work
inside MySQL, and MySQL already has that infrastructure, so it was easier for
me to re-use it.
> avro_set_error() in AVRO C version 1.6.3 is not thread safe
> -----------------------------------------------------------
>
> Key: AVRO-1110
> URL: https://issues.apache.org/jira/browse/AVRO-1110
> Project: Avro
> Issue Type: Bug
> Components: c
> Affects Versions: 1.6.3
> Reporter: Sasha Pachev
> Attachments: errors.patch
>
>
> avro_set_error() is using a global buffer, which is not thread-safe. Proposed
> solution is instead of always using the AVRO_CURRENT_ERROR buffer to provide
> an option for the caller to supply its own buffer via function pointer
> callback.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira