Details
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
Attachments
Issue Links
- is duplicated by
-
HDFS-7341 Add initial snapshot support based on pipeline recovery
- Resolved
-
HADOOP-4109 FileSystem support for posix truncate method
- Resolved
- is related to
-
HDFS-9164 hdfs-nfs connector fails on O_TRUNC
- Patch Available
- relates to
-
HDFS-9516 truncate file fails with data dirs on multiple disks
- Closed
-
HDFS-7606 Missing null check in INodeFile#getBlocks()
- Closed
-
HADOOP-11490 Expose truncate API via FileSystem and shell command
- Closed
-
HADOOP-11510 Expose truncate API via FileContext
- Closed
-
MAPREDUCE-6227 DFSIO for truncate
- Closed
-
MAPREDUCE-6228 Add truncate operation to SLive
- Closed
-
HADOOP-11579 Documentation for truncate
- Closed