Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: datanode, namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Systems with transaction support often need to undo changes made to the underlying storage when a transaction is aborted. Currently HDFS does not support truncate (a standard Posix operation) which is a reverse operation of append, which makes upper layer applications use ugly workarounds (such as keeping track of the discarded byte range per file in a separate metadata store, and periodically running a vacuum process to rewrite compacted files) to overcome this limitation of HDFS.

        Attachments

        1. HDFS_truncate_semantics_Mar15.pdf
          13 kB
          Tsz Wo Nicholas Sze
        2. HDFS_truncate_semantics_Mar21.pdf
          13 kB
          Tsz Wo Nicholas Sze
        3. HDFS_truncate.pdf
          478 kB
          Konstantin Shvachko
        4. HDFS-3107.15_branch2.patch
          59 kB
          Plamen Jeliazkov
        5. editsStored.xml
          30 kB
          Plamen Jeliazkov
        6. editsStored
          6 kB
          Plamen Jeliazkov
        7. HDFS-3107-15.patch
          59 kB
          Konstantin Shvachko
        8. HDFS-3107-14.patch
          59 kB
          Konstantin Shvachko
        9. HDFS-3107-13.patch
          59 kB
          Konstantin Shvachko
        10. HDFS-3107.patch
          60 kB
          Konstantin Shvachko
        11. HDFS-3107.patch
          59 kB
          Konstantin Shvachko
        12. HDFS-3107.patch
          60 kB
          Konstantin Shvachko
        13. HDFS_truncate.pdf
          479 kB
          Konstantin Shvachko
        14. HDFS-3107-HDFS-7056-combined.patch
          124 kB
          Konstantin Shvachko
        15. HDFS-3107.patch
          59 kB
          Plamen Jeliazkov
        16. HDFS-3107.008.patch
          36 kB
          Colin P. McCabe
        17. HDFS-3107.patch
          59 kB
          Konstantin Shvachko
        18. HDFS-3107.patch
          58 kB
          Plamen Jeliazkov
        19. HDFS_truncate.pdf
          473 kB
          Konstantin Shvachko
        20. HDFS-3107.patch
          83 kB
          Plamen Jeliazkov
        21. HDFS-3107.patch
          75 kB
          Plamen Jeliazkov
        22. HDFS-3107.patch
          50 kB
          Plamen Jeliazkov
        23. HDFS-3107.patch
          50 kB
          Plamen Jeliazkov
        24. HDFS_truncate.pdf
          337 kB
          Konstantin Shvachko
        25. HDFS-3107.patch
          50 kB
          Plamen Jeliazkov
        26. HDFS_truncate_semantics_Mar21.pdf
          189 kB
          Lei Chang
        27. HDFS_truncate_semantics_Mar15.pdf
          265 kB
          Lei Chang

          Issue Links

            Activity

              People

              • Assignee:
                zero45 Plamen Jeliazkov
                Reporter:
                lei_chang Lei Chang
              • Votes:
                4 Vote for this issue
                Watchers:
                52 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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