[
https://issues.apache.org/jira/browse/RATIS-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved RATIS-2038.
-------------------------------
Fix Version/s: 3.1.0
Resolution: Fixed
The pull request is now merged.
> IllegalStateException when ServerState is closed before start
> -------------------------------------------------------------
>
> Key: RATIS-2038
> URL: https://issues.apache.org/jira/browse/RATIS-2038
> Project: Ratis
> Issue Type: Bug
> Components: server
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Minor
> Fix For: 3.1.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When ServerState is closed before start, it will have the following
> exception. This is minor since it happens when "close before start".
> {code}
> IllegalStateException:
> 5b481d07-b77a-41d2-9738-f92fabc9c16c@group-C6CBCD530F38: stateMachineUpdater
> is uninitialized.
> at
> org.apache.ratis.server.impl.ServerState.getStateMachineUpdater(ServerState.java:294)
> at
> org.apache.ratis.server.impl.ServerState.getLastAppliedIndex(ServerState.java:483)
> at org.apache.ratis.server.impl.ServerState.close(ServerState.java:424)
> at
> org.apache.ratis.server.impl.RaftServerImpl.lambda$close$1(RaftServerImpl.java:521)
> at
> org.apache.ratis.util.LifeCycle.lambda$checkStateAndClose$7(LifeCycle.java:306)
> at
> org.apache.ratis.util.LifeCycle.checkStateAndClose(LifeCycle.java:326)
> at
> org.apache.ratis.util.LifeCycle.checkStateAndClose(LifeCycle.java:304)
> at
> org.apache.ratis.server.impl.RaftServerImpl.close(RaftServerImpl.java:498)
> at
> org.apache.ratis.server.impl.RaftServerProxy$ImplMap.close(RaftServerProxy.java:137)
> at
> org.apache.ratis.server.impl.RaftServerProxy$ImplMap.lambda$close$0(RaftServerProxy.java:124)
> at
> org.apache.ratis.util.ConcurrentUtils.accept(ConcurrentUtils.java:203)
> at
> org.apache.ratis.util.ConcurrentUtils.lambda$null$4(ConcurrentUtils.java:182)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:834)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)