You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "JiangHua Zhu (Jira)" <ji...@apache.org> on 2025/05/12 16:24:00 UTC
[jira] [Commented] (RATIS-2288) Add some assertions to RaftServerImpl to improve robustness
[ https://issues.apache.org/jira/browse/RATIS-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17951012#comment-17951012 ]
JiangHua Zhu commented on RATIS-2288:
-------------------------------------
This issue has been fixed in RATIS-2180.
> Add some assertions to RaftServerImpl to improve robustness
> -----------------------------------------------------------
>
> Key: RATIS-2288
> URL: https://issues.apache.org/jira/browse/RATIS-2288
> Project: Ratis
> Issue Type: Improvement
> Components: server
> Affects Versions: 3.1.1, 3.1.2
> Reporter: JiangHua Zhu
> Assignee: JiangHua Zhu
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When executing RaftServerImpl#getTransactionContext(), it may return null. We should add some assertions.
> {code:java}
> TransactionContext getTransactionContext(LogEntryProto entry, Boolean createNew) {
> if (!entry.hasStateMachineLogEntry()) {
> return null;
> }
> ......
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)