Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3107 HDFS truncate
  3. HDFS-7634

Disallow truncation of Lazy persist files

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • datanode, namenode
    • None
    • Reviewed

    Description

      Similar with append, lazy persist (memory) file should not support truncate currently. Quote the reason from HDFS-6581 design doc:

      Appends to files created with the LAZY_PERSISTflag will not be allowed in the initial implementation to avoid the complexity of keeping in­memory and on­disk replicas in sync on a given DataNode.

      Attachments

        1. HDFS-7634.001.patch
          1 kB
          Yi Liu
        2. HDFS-7634.002.patch
          1 kB
          Yi Liu

        Issue Links

          Activity

            People

              hitliuyi Yi Liu
              hitliuyi Yi Liu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: