[
https://issues.apache.org/jira/browse/RATIS-1711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17607496#comment-17607496
]
Tsz-wo Sze commented on RATIS-1711:
-----------------------------------
[~jackietien], this is not a bug -- LogProtoUtils.isStateMachineDataEmpty
returns true only if stateMachineData exists and is empty. The change in the
pull request will change it to return true when stateMachineData does not exist.
> Returned boolean result seems to be opposite in
> LogProtoUtils.isStateMachineDataEmpty
> -------------------------------------------------------------------------------------
>
> Key: RATIS-1711
> URL: https://issues.apache.org/jira/browse/RATIS-1711
> Project: Ratis
> Issue Type: Bug
> Components: server
> Affects Versions: 2.3.0
> Reporter: Yuan Tian
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> It seems that LogProtoUtils.isStateMachineDataEmpty will return false when
> there is no
> `StateMachineDataEntry` for `LogEntryProto` in the orElse branch which I
> think should be true.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)