avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Blue (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1832) Invoking toString() method unexpectedly modified the avro record.
Date Wed, 20 Apr 2016 15:53:25 GMT

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

Ryan Blue commented on AVRO-1832:
---------------------------------

I think this is a duplicate of AVRO-1799, which was [fixed|https://github.com/apache/avro/blame/master/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java#L550]
and will be in the upcoming 1.8.1 release. Can you confirm that it looks like the same issue?

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

Mime
View raw message