[
https://issues.apache.org/jira/browse/RATIS-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated RATIS-1697:
------------------------------------
Fix Version/s: 2.5.0
> StateMachineUpdater.getStateMachineLastAppliedIndex should handle null
> ----------------------------------------------------------------------
>
> Key: RATIS-1697
> URL: https://issues.apache.org/jira/browse/RATIS-1697
> Project: Ratis
> Issue Type: Bug
> Components: server
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
> Fix For: 3.0.0, 2.5.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> {code}
> //StateMachineUpdater.java
> long getStateMachineLastAppliedIndex() {
> return stateMachine.getLastAppliedTermIndex().getIndex();
> }
> {code}
> stateMachine.getLastAppliedTermIndex() above may return null.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)