You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Robert Burke (Jira)" <ji...@apache.org> on 2021/11/14 23:50:00 UTC

[jira] [Updated] (BEAM-13239) [Go SDK] Schema Row Decoder doesn't properly handle io.EOF

     [ https://issues.apache.org/jira/browse/BEAM-13239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Burke updated BEAM-13239:
--------------------------------
    Fix Version/s: 2.35.0

> [Go SDK] Schema Row Decoder doesn't properly handle io.EOF
> ----------------------------------------------------------
>
>                 Key: BEAM-13239
>                 URL: https://issues.apache.org/jira/browse/BEAM-13239
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-go
>    Affects Versions: 2.33.0, 2.34.0
>            Reporter: Robert Burke
>            Priority: P2
>             Fix For: 2.35.0
>
>
> The Schema Row Decoder doesn't properly handle io.EOF errors, and ends up incorrectly wrapping them. This breaks Iterable processing which checks for io.EOF (generally common for all go io processing really). 
> https://github.com/apache/beam/blob/master/sdks/go/pkg/beam/core/graph/coder/row_decoder.go#L108
> Simple fix. Needs to check for io.EOF first, before re-wrapping.
> errors.Wrapf ignores nils and returns a nil in when passed one, so it's immeadiate use is fine. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)