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-3) ValueReader does not detect EOF, infinite loop results
Date Fri, 10 Apr 2009 23:33:14 GMT

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

Doug Cutting updated AVRO-3:
----------------------------

       Resolution: Fixed
    Fix Version/s: 1.0
           Status: Resolved  (was: Patch Available)

I just committed this.  Thanks, Pat!

> ValueReader does not detect EOF, infinite loop results
> ------------------------------------------------------
>
>                 Key: AVRO-3
>                 URL: https://issues.apache.org/jira/browse/AVRO-3
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.0
>         Environment: Ubuntu 8.10, single core
>            Reporter: Patrick Hunt
>            Assignee: Doug Cutting
>            Priority: Critical
>             Fix For: 1.0
>
>         Attachments: AVRO-3.patch, AVRO-3.patch, AVRO-3.patch
>
>
> readLong() will hang (100%cpu infinite loop) when the end of the stream is reached. in.read()
returns -1 but that's not checked for. I suspect you want to throw EOFException similar to
DataInput? Seems like all the read* methods in ValueReader have this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message