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] Updated: (AVRO-738) BinaryEncoder's init() function does not reset the OutputStream of the embedded SimpleByteWriter
Date Mon, 21 Feb 2011 23:52:38 GMT

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

Doug Cutting updated AVRO-738:
------------------------------

    Fix Version/s:     (was: 1.5.0)
                   1.5.1

> BinaryEncoder's init() function does not reset the OutputStream of the embedded SimpleByteWriter
> ------------------------------------------------------------------------------------------------
>
>                 Key: AVRO-738
>                 URL: https://issues.apache.org/jira/browse/AVRO-738
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Devajyoti Sarkar
>            Priority: Critical
>             Fix For: 1.5.1
>
>
> This is a problem if one is trying to reuse the BinaryEncoder by passing a new OutputStream
with the init() method. While the encoder will write all the fields to the new OutputStream,
fields that are of type "bytes" do not get written. This effectively means that one needs
to create a new BinaryEncoder each time if one is serializing record with a "bytes" field
in it.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message