avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yang Yang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-882) 2nd read on end of file gives error
Date Tue, 30 Aug 2011 23:16:09 GMT
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

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 :


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


View raw message