You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Jing Zhao (JIRA)" <ji...@apache.org> on 2014/02/05 00:18:13 UTC
[jira] [Resolved] (HDFS-5884) LoadDelegator should use
IOUtils.readFully() to read the magic header
[ https://issues.apache.org/jira/browse/HDFS-5884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jing Zhao resolved HDFS-5884.
-----------------------------
Resolution: Fixed
Fix Version/s: HDFS-5698 (FSImage in protobuf)
Hadoop Flags: Reviewed
+1. I've committed this.
> 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
> Fix For: HDFS-5698 (FSImage in protobuf)
>
> 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)