Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Noticed while playing with a Flight client. This snippet inadvertently suppresses all errors that come from the underlying MessageReader since next sets done after an error is encountered.
func (r *Reader) Read() (array.Record, error) { if r.rec != nil { r.rec.Release() r.rec = nil } if !r.next() { // r.done is set if next() errors, so we always // return EOF instead of the actual error if r.done { return nil, io.EOF } return nil, r.err } return r.rec, nil }
Attachments
Issue Links
- links to