[ https://issues.apache.org/jira/browse/HDDS-4383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
runzhiwang updated HDDS-4383: ----------------------------- Description: 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>. > 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 > 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: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org