You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Daniel Halperin (JIRA)" <ji...@apache.org> on 2017/05/10 20:01:04 UTC

[jira] [Closed] (BEAM-2249) AvroIO does not handle partial reads

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

Daniel Halperin closed BEAM-2249.
---------------------------------
    Resolution: Fixed

> AvroIO does not handle partial reads
> ------------------------------------
>
>                 Key: BEAM-2249
>                 URL: https://issues.apache.org/jira/browse/BEAM-2249
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Daniel Halperin
>            Assignee: Daniel Halperin
>             Fix For: 2.0.0
>
>
> Reported by a user using HDFS with AvroIO, they are hitting an exception here: https://github.com/apache/beam/blob/4abb9cbc1db220af3663ddbacbbe26d7d443e621/sdks/java/core/src/main/java/org/apache/beam/sdk/io/AvroSource.java#L669
> Looks like this is because we are assuming the read will always return the right number of bytes. We should be using {{IOUtils.readFully}} instead.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)