[
https://issues.apache.org/jira/browse/HDDS-4383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yang Yu reassigned HDDS-4383:
-----------------------------
Assignee: Yang Yu
> Datanode truncates blocks on the disk
> -------------------------------------
>
> Key: HDDS-4383
> URL: https://issues.apache.org/jira/browse/HDDS-4383
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Reporter: runzhiwang
> Assignee: Yang Yu
> Priority: Major
>
> Datanode starts a background thread to process <TRUNCATING_blockID,
> newLength>. If it is FilePerBlock, we use FileChannel.truncate to truncate
> file to newLength directly. If it is FilePerChunk, we delete the files of the
> fully truncated chunks, and use FileChannel.truncate to process the partially
> truncated file. Then, in RocksDB, Datanode delete <TRUNCATING_blockid,
> newLength>, and put <TRUNCATED_blockid, newLength>.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]