Haohui Mai created HDFS-5884:
--------------------------------

             Summary: 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
            Reporter: Haohui Mai
            Assignee: Haohui Mai


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)

Reply via email to