You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (Commented) (JIRA)" <ji...@apache.org> on 2012/04/09 21:33:18 UTC

[jira] [Commented] (AVRO-1055) Race condition in Java fingerprinting code

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

Doug Cutting commented on AVRO-1055:
------------------------------------

+1 Looks good to me.  You might add a comment saying something like, "Nested class used so that table is not built unless it's used."
                
> Race condition in Java fingerprinting code
> ------------------------------------------
>
>                 Key: AVRO-1055
>                 URL: https://issues.apache.org/jira/browse/AVRO-1055
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.0
>            Reporter: Thiruvalluvan M. G.
>            Assignee: Thiruvalluvan M. G.
>            Priority: Minor
>         Attachments: AVRO-1055.patch
>
>
> There is a subtle race condition. If the fpTable64 is not yet initialized and two thread try to compute FP for two schemas (or the same schema) at the same time, one thread will start initializing the table while the other can start using the partially initialized table giving wrong result.
> The forthcoming patch fixes that issue

--
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