avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Hunt (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AVRO-3) ValueReader does not detect EOF, infinite loop results
Date Fri, 10 Apr 2009 23:16:14 GMT

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

Patrick Hunt updated AVRO-3:

    Attachment: AVRO-3.patch

Latest patch merges in the individual patches from Doug and I into a single patch.

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

View raw message