You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Rui Wang (Jira)" <ji...@apache.org> on 2021/02/05 20:43:00 UTC

[jira] [Commented] (HDDS-4684) Use applyTransactionSerial instead of applyTransaction

    [ https://issues.apache.org/jira/browse/HDDS-4684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17279979#comment-17279979 ] 

Rui Wang commented on HDDS-4684:
--------------------------------

[~shashikant] per the discussion in Ratis community, the comment on ApplyTransaction is not clear enough. 

If we return completed futures, then ApplyTransaction will also be the same as the order of log commits

> Use applyTransactionSerial instead of applyTransaction
> ------------------------------------------------------
>
>                 Key: HDDS-4684
>                 URL: https://issues.apache.org/jira/browse/HDDS-4684
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Rui Wang
>            Assignee: Rui Wang
>            Priority: Major
>
> applyTransactionSerial is expected to execute transaction serializable while applyTransaction potentially run transaction in parallel. 
> However, in current SCM state machine, applyTransaction waits each operation to finish even it returns CompleteFuture. So we should use applyTransactionSerial and leave applyTransaction returns null.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org