Guangcun Li created RATIS-2816:
----------------------------------
Summary: 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
{{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)