avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1200) DatumWriter can write malformed data if collection is modified during write
Date Thu, 08 Nov 2012 22:30:12 GMT

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

Doug Cutting commented on AVRO-1200:
------------------------------------

+1 The patch looks good.  Thanks, Tom, for finding & fixing this!

Doug

                
> DatumWriter can write malformed data if collection is modified during write
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-1200
>                 URL: https://issues.apache.org/jira/browse/AVRO-1200
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.2
>            Reporter: Tom White
>            Assignee: Tom White
>             Fix For: 1.7.3
>
>         Attachments: AVRO-1200.patch
>
>
> GenericDatumWriter's writeArray and writeMap methods write the size of the collection/map
before writing the entries, so it's possible that the sizes will not match, which can cause
data corruption and read failures like AVRO-1198.

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

Mime
View raw message