[ 
https://issues.apache.org/jira/browse/GIRAPH-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14026857#comment-14026857
 ] 

Pavan Kumar commented on GIRAPH-915:
------------------------------------

throwing an exception sounds better.
this is because we can have future implementations of bytedatastructs and 
available is really needed (for example in bytebufdatainput, etc.)

> With BigDataIO some messages can get ignored
> --------------------------------------------
>
>                 Key: GIRAPH-915
>                 URL: https://issues.apache.org/jira/browse/GIRAPH-915
>             Project: Giraph
>          Issue Type: Bug
>            Reporter: Maja Kabiljo
>            Assignee: Maja Kabiljo
>         Attachments: GIRAPH-915.patch
>
>
> ExtendedDataInput has "int available()" method, and when iterating through 
> messages we check if it's grater then zero. For BigDataIO we can get an 
> overflow here, returning a negative values and ignoring the rest of messages.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to