[
https://issues.apache.org/jira/browse/AVRO-1832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan Blue resolved AVRO-1832.
-----------------------------
Resolution: Duplicate
> Invoking toString() method unexpectedly modified the avro record.
> -----------------------------------------------------------------
>
> Key: AVRO-1832
> URL: https://issues.apache.org/jira/browse/AVRO-1832
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.8.0
> Reporter: Oleksandr Didukh
> Fix For: 1.8.1
>
>
> We use Apache Avro in our project and wanted to update it to 1.8.0 version.
> In our case avro records contain fields with "type": "bytes".
> We need to convert generated avro record to byte array. This usually works
> fine, however, if we log the record (or apply any other operations that
> invoke toString() method on org.apache.avro.specific.SpecificRecordBase) this
> functionality is broken. Looks like the root cause of the issue is in this
> line:
> https://github.com/apache/avro/pull/88/files#diff-5a41450f3008ee0da59dec14ada2356aL551
> Please review fix and corresponding test in
> [this|https://github.com/apache/avro/pull/88/] pull request.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)