You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2015/02/06 22:50:44 UTC

[jira] [Comment Edited] (HDFS-3107) HDFS truncate

    [ https://issues.apache.org/jira/browse/HDFS-3107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14309989#comment-14309989 ] 

Konstantin Shvachko edited comment on HDFS-3107 at 2/6/15 9:50 PM:
-------------------------------------------------------------------

Attaching new version of the design document.
You guys keep referring to the document attached to HDFS-7056, which I am really not in control of. It was uploaded by [~rguo], and it reflects according to the jira comments Pivotal's internal implementation of truncate. It is quite close to what we did, but not the exact match.
I think my design doc has all necessary details for the truncate-snapshot integration. So I just removed the reference to Guo's doc, because it keeps causing confusion. It is still a good source of introduction to snapshots impl. in general.


was (Author: shv):
Attaching new version of the design document.
You guys keep referring to the document attached to HDFS-7056, which I am really not in control of. It was uploaded by [~rguo], and it reflects according to the jira comments Pivotal's internal implementation of truncate. It is quite close to what we did, but the exact match.
I think my design doc has all necessary details for the truncate-snapshot integration. So I just removed the reference to Guo's doc, because it keeps causing confusion.

> HDFS truncate
> -------------
>
>                 Key: HDFS-3107
>                 URL: https://issues.apache.org/jira/browse/HDFS-3107
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>          Components: datanode, namenode
>            Reporter: Lei Chang
>            Assignee: Plamen Jeliazkov
>             Fix For: 2.7.0
>
>         Attachments: HDFS-3107-13.patch, HDFS-3107-14.patch, HDFS-3107-15.patch, HDFS-3107-HDFS-7056-combined.patch, HDFS-3107.008.patch, HDFS-3107.15_branch2.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS-3107.patch, HDFS_truncate.pdf, HDFS_truncate.pdf, HDFS_truncate.pdf, HDFS_truncate.pdf, HDFS_truncate_semantics_Mar15.pdf, HDFS_truncate_semantics_Mar21.pdf, editsStored, editsStored.xml
>
>   Original Estimate: 1,344h
>  Remaining Estimate: 1,344h
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)