[
https://issues.apache.org/jira/browse/RATIS-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894112#comment-16894112
]
Tsz Wo Nicholas Sze commented on RATIS-603:
-------------------------------------------
[~msingh], thanks for the response. Then, please don't change RaftServer.
Just add a toString method like below to StateMachine.
{code}
//StateMachine
default String toString(StateMachineLogEntryProto proto) {
return proto.toString();
}
{code}
> Add a logStringSupplier for RaftServerImpl to optionally print SmLogEntry on
> errors
> -----------------------------------------------------------------------------------
>
> Key: RATIS-603
> URL: https://issues.apache.org/jira/browse/RATIS-603
> Project: Ratis
> Issue Type: New Feature
> Components: server
> Affects Versions: 0.4.0
> Reporter: Mukul Kumar Singh
> Assignee: Mukul Kumar Singh
> Priority: Major
> Labels: ozone
> Attachments: RATIS-603.001.patch, RATIS-603.002.patch,
> RATIS-603.003.patch, RATIS-603.004.patch
>
>
> This jira proposes to add a SmLogEntryProto to toString converter so that
> logEntry information can be printed on errors/exceptions.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)