You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2018/01/31 22:41:00 UTC

[jira] [Created] (RATIS-206) Chanage StateMachine.query to pass and return Message

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)