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 Sze (Jira)" <ji...@apache.org> on 2020/11/15 11:36:00 UTC

[jira] [Created] (RATIS-1158) Use the same proto for StateMachineExceptionProto, AlreadyClosedExceptionProto and DataStreamExceptionProto

Tsz-wo Sze created RATIS-1158:
---------------------------------

             Summary: Use the same proto for StateMachineExceptionProto, AlreadyClosedExceptionProto and DataStreamExceptionProto
                 Key: RATIS-1158
                 URL: https://issues.apache.org/jira/browse/RATIS-1158
             Project: Ratis
          Issue Type: Improvement
          Components: proto
            Reporter: Tsz-wo Sze
            Assignee: Tsz-wo Sze


{code}
//Raft.proto
message StateMachineExceptionProto {
  string exceptionClassName = 1;
  string errorMsg = 2;
  bytes stacktrace = 3;
}

message AlreadyClosedExceptionProto {
  string exceptionClassName = 1;
  string errorMsg = 2;
  bytes stacktrace = 3;
}

message DataStreamExceptionProto {
  string exceptionClassName = 1;
  string errorMsg = 2;
  bytes stacktrace = 3;
}
{code}
StateMachineExceptionProto, AlreadyClosedExceptionProto and DataStreamExceptionProto have exactly the same structure.  They should use the same proto to avoid code duplication.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)