You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Venkatesh (JIRA)" <ji...@apache.org> on 2014/01/29 22:56:09 UTC

[jira] [Commented] (AVRO-882) 2nd read on end of file gives error

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

Venkatesh commented on AVRO-882:
--------------------------------

Hi, I have the same problem. Is there a fix to this issue. ?

> 2nd read on end of file gives error
> -----------------------------------
>
>                 Key: AVRO-882
>                 URL: https://issues.apache.org/jira/browse/AVRO-882
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.5.2
>            Reporter: Yang Yang
>            Priority: Minor
>         Attachments: a.diff
>
>
> if I read on a empty file with BinaryDecoder, I get EOF, good,
> but with the current code, if I read it again with the same decoder, I
> get a IndexOutofBoundException, not EOF.
> it seems that always giving EOF should be a more desirable behavior.
> I can see a bug in BinaryEncoder that causes this.
> more details in :
> http://mail-archives.apache.org/mod_mbox/avro-user/201108.mbox/%3CCAAnh3_9_CQqbmt4VQYZg8-iKfO4nnLPcUZbBwd4kQoAvPEKGKQ@mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)