Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14604

OEV tool fails to read edit xml file if OP_TRUNCATE has BLOCK tag

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.2, 3.1.1, 2.9.2, 3.1.2
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Fixed HDFS OEV deserialized edits log conversion from XML to binary error when OP_TRUNCATE existed.
    • Tags:
      HDFS OEV
    • Flags:
      Patch
    • Docs Text:
      Fixed HDFS OEV deserialized edits log conversion from XML to binary error when OP_TRUNCATE existed.

      Description

          使用 HDFS OEV 命令处理 edits 文件,从xml格式的文件转成成binary格式的文件的时候,当xml文件中存在 OP_TRUNCATE 操作并且含有子 BLOCK的时候报错 

          我追踪了源码发现 blockFromXml 方法需要的是一个block 对象但是被传递的是一个 data对象,我已经解决了这个问题,并且验证了可用性,

           When edits files are processed with HDFS OEV command and converted from XML files to binary files, errors are reported when OP_TRUNCATE operation exists in XML files and BLOCKs are included.

          I tracked the source code and found that the blockFromXml method needed a block object but was passed a data object. I have solved this problem and verified its availability.

          I will submit a patch for this as soon as possible.

         

        Attachments

        1. image-2019-06-25-14-58-39-681.png
          187 kB
          huowang
        2. image-2019-06-25-14-56-53-151.png
          148 kB
          huowang

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              huowang huowang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified