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/02/23 16:04:00 UTC
[jira] [Created] (RATIS-210) Refactor client request proto
Tsz Wo Nicholas Sze created RATIS-210:
-----------------------------------------
Summary: Refactor client request proto
Key: RATIS-210
URL: https://issues.apache.org/jira/browse/RATIS-210
Project: Ratis
Issue Type: Improvement
Reporter: Tsz Wo Nicholas Sze
Assignee: Tsz Wo Nicholas Sze
In RATIS-208, we plan to add a parameter for client specifying the number of required servers in a write request. In the current code, it is hard (or ugly) to add such parameter.
In this JIRA, we propose to replace enum Type in RaftClientRequestProto by
{code}
oneof Type {
WriteRequestProto write = 3;
ReadRequestProto read = 4;
StaleReadRequestProto staleRead = 5;
}
{code}
so that each proto can carry the request specific parameters.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)