You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Kevin Klues (JIRA)" <ji...@apache.org> on 2016/12/03 02:27:58 UTC

[jira] [Created] (MESOS-6683) Return error from recordio::Reader if data is still buffered when EOF reached.

Kevin Klues created MESOS-6683:
----------------------------------

             Summary: Return error from recordio::Reader if data is still buffered when EOF reached.
                 Key: MESOS-6683
                 URL: https://issues.apache.org/jira/browse/MESOS-6683
             Project: Mesos
          Issue Type: Bug
            Reporter: Kevin Klues
            Assignee: Anand Mazumdar


Right now, whenever EOF is reached a {{None()}} is returned to indicate that no more records will be read.

However, we should only return {{None()}} if we reach EOF and there are no bytes in the readers internal data buffer. If there are bytes in the buffer, that indicates that a *partial* record has been read, but EOF was reached before reading a full record. We should return an error in this case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)