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 17:12:04 UTC

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

Daniel Halperin created BEAM-2249:
-------------------------------------

             Summary: 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)