[
https://issues.apache.org/jira/browse/HDDS-4376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
runzhiwang updated HDDS-4376:
-----------------------------
Description:
When scm receives TruncateScmKeyRequestProto, for the deleteBlocks, scm has
already implemented the code.
For the partialTruncateBlocks, we process it as a transaction like
deleteBlocks, store <transactionId, TruncatedBlocksTransaction> in
truncatedBlocksTable, and return succ to OM.
We abstract the code related to delete block transaction, so that truncate and
delete blocks can share the abstract code.
> SCM create transaction for truncated blocks
> -------------------------------------------
>
> Key: HDDS-4376
> URL: https://issues.apache.org/jira/browse/HDDS-4376
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Reporter: runzhiwang
> Assignee: runzhiwang
> Priority: Major
>
> When scm receives TruncateScmKeyRequestProto, for the deleteBlocks, scm has
> already implemented the code.
> For the partialTruncateBlocks, we process it as a transaction like
> deleteBlocks, store <transactionId, TruncatedBlocksTransaction> in
> truncatedBlocksTable, and return succ to OM.
> We abstract the code related to delete block transaction, so that truncate
> and delete blocks can share the abstract code.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]