beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Halperin (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (BEAM-2249) AvroIO does not handle partial reads
Date Wed, 10 May 2017 20:01:04 GMT

     [ 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)

Mime
View raw message