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] Assigned: (AVRO-3) ValueReader does not detect EOF, infinite loop results
Date Fri, 10 Apr 2009 21:40:14 GMT

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

Doug Cutting reassigned AVRO-3:
-------------------------------

    Assignee: Doug Cutting

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