Tsz Wo Nicholas Sze created RATIS-206:
-----------------------------------------
Summary: Chanage StateMachine.query to pass and return Message
Key: RATIS-206
URL: https://issues.apache.org/jira/browse/RATIS-206
Project: Ratis
Issue Type: Sub-task
Reporter: Tsz Wo Nicholas Sze
Assignee: Tsz Wo Nicholas Sze
{code}
//StateMachine
CompletableFuture<RaftClientReply> query(RaftClientRequest request);
{code}
Currently, query passes RaftClientRequest as a parameter and returns a future
of RaftClientReply. However, the state machine only needs the Message inside.
It should not use the other metadata in RaftClientRequest and RaftClientReply.
Also, the state machine does not have enough information to create
RaftClientReply after we add commit informations later.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)