hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haohui Mai (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-5884) LoadDelegator should use IOUtils.readFully() to read the magic header
Date Tue, 04 Feb 2014 22:40:09 GMT

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

Haohui Mai updated HDFS-5884:
-----------------------------

    Attachment: HDFS-5884.000.patch

> LoadDelegator should use IOUtils.readFully() to read the magic header
> ---------------------------------------------------------------------
>
>                 Key: HDFS-5884
>                 URL: https://issues.apache.org/jira/browse/HDFS-5884
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: HDFS-5698 (FSImage in protobuf)
>            Reporter: Haohui Mai
>            Assignee: Haohui Mai
>         Attachments: HDFS-5884.000.patch
>
>
> Currently FSImageFormat.LoadDelegator reads the magic header using {{FileInputStream.read()}}.
It does not guarantee that the magic header is fully read. It should use {{IOUtils.readFully()}}
instead.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message