[ 
https://issues.apache.org/jira/browse/RATIS-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz Wo Nicholas Sze updated RATIS-206:
--------------------------------------
    Summary: Change StateMachine.query to pass and return Message  (was: 
Chanage StateMachine.query to pass and return Message)

> Change 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
>            Priority: Major
>         Attachments: r206_20180131.patch
>
>
> {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)

Reply via email to