[
https://issues.apache.org/jira/browse/HDFS-7056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Plamen Jeliazkov updated HDFS-7056:
-----------------------------------
Attachment: HDFS-7056.patch
HDFS-3107-HDFS-7056-combined.patch
Trunk had moved on since I generated my patch. Refreshed both combined and
regular patch.
Made some additional changes with help from Konstantin:
# Patch failed with compilation error due to HDFS-7381. Updated patch to
account for new BlockIdManager in trunk.
# Renamed parameter of commitBlockSynchronization(), from "lastblock" to
"oldBlock". We did this change because commitBlockSynchronization() handles
both regular recovery and copy-on-write truncate now.
# Removed a call in commitBlockSynchronization() to getStoredBlock() because we
could get it from iFile.getLastBlock().
# Fixed TestCommitBlockSynchronization again by making mocked INodeFile return
BlockInfoUC when calling getLastBlock() on it.
> Snapshot support for truncate
> -----------------------------
>
> Key: HDFS-7056
> URL: https://issues.apache.org/jira/browse/HDFS-7056
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Affects Versions: 3.0.0
> Reporter: Konstantin Shvachko
> Assignee: Plamen Jeliazkov
> Attachments: HDFS-3107-HDFS-7056-combined.patch,
> HDFS-3107-HDFS-7056-combined.patch, HDFS-3107-HDFS-7056-combined.patch,
> HDFS-3107-HDFS-7056-combined.patch, HDFS-7056.patch, HDFS-7056.patch,
> HDFS-7056.patch, HDFS-7056.patch, HDFS-7056.patch,
> HDFSSnapshotWithTruncateDesign.docx
>
>
> Implementation of truncate in HDFS-3107 does not allow truncating files which
> are in a snapshot. It is desirable to be able to truncate and still keep the
> old file state of the file in the snapshot.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)