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)