Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5698 Use protobuf to serialize / deserialize FSImage
  3. HDFS-5884

LoadDelegator should use IOUtils.readFully() to read the magic header

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HDFS-5698 (FSImage in protobuf)
    • None
    • None

    Description

      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.

      Attachments

        1. HDFS-5884.000.patch
          1 kB
          Haohui Mai

        Activity

          People

            wheat9 Haohui Mai
            wheat9 Haohui Mai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: