You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "runzhiwang (Jira)" <ji...@apache.org> on 2020/11/16 02:08:00 UTC
[jira] [Resolved] (RATIS-1158) Use the same proto for
StateMachineExceptionProto, AlreadyClosedExceptionProto and
DataStreamExceptionProto
[ https://issues.apache.org/jira/browse/RATIS-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
runzhiwang resolved RATIS-1158.
-------------------------------
Resolution: Fixed
> 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
> Priority: Major
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> {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)