mesos / mesos-go

Go language bindings for Apache Mesos
Apache License 2.0
545 stars 146 forks source link

recordio: clearly distinguish between EOF and EOF-no-data cases #329

Closed jdef closed 6 years ago

jdef commented 6 years ago

Currently there's no way for a client of a decoder that's working against a recordio stream to distinguish between the (frame,EOF) case and (no-frame,EOF) case. As a result, an Unmarshaler may be invoked with a zero-length frame, which doesn't play well (at least, for the built-in JSON unmarshaler).