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] Created: (AVRO-3) ValueReader does not detect EOF, infinite loop results
Date Fri, 10 Apr 2009 20:15:15 GMT
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
            Priority: Critical


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