[
https://issues.apache.org/jira/browse/RATIS-2816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rui Wang resolved RATIS-2816.
-----------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
[~lugency] the patch is merged. Thanks!
> Preserve stateMachineContext in FileStoreStateMachine.startTransaction()
> ------------------------------------------------------------------------
>
> Key: RATIS-2816
> URL: https://issues.apache.org/jira/browse/RATIS-2816
> Project: Ratis
> Issue Type: Improvement
> Components: examples
> Reporter: Guangcun Li
> Assignee: Guangcun Li
> Priority: Major
> Fix For: 3.4.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> {{FileStoreStateMachine.startTransaction(LogEntryProto, RaftPeerRole)}}
> parses the log data and sets {{stateMachineContext}} on the builder. The
> log-entry branch of {{TransactionContext.Builder.build()}} drops this field,
> so {{write()}}, {{read()}}, and {{applyTransaction()}} parse the log data
> again.
> Create the transaction context with {{super.startTransaction(entry, role)}}
> and set the parsed request on the returned context.
> Split from RATIS-2814.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)