[
https://issues.apache.org/jira/browse/RATIS-2433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated RATIS-2433:
------------------------------
Attachment: 1382_review.patch
> writeAsyncImpl doesn't cancel transactions in case of errors
> ------------------------------------------------------------
>
> Key: RATIS-2433
> URL: https://issues.apache.org/jira/browse/RATIS-2433
> Project: Ratis
> Issue Type: Improvement
> Reporter: Abhishek Pal
> Assignee: Abhishek Pal
> Priority: Major
> Attachments: 1382_review.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently in RaftServerImpl#writeAsyncImpl() the client request is added to
> the pending requests asynchronously.
> In between if there is any failure/exception in appendTransactions() then we
> are not cancelling the transaction. The failure is returned to the
> client/retry-cache, but the statemachine is not notified.
> This can cause partial state in the statemachine.
> We should handle this such that in case of exceptions the statemachine is
> notified via cancelTransaction().
--
This message was sent by Atlassian Jira
(v8.20.10#820010)