Description
When ServerState is closed before start, it will have the following exception. This is minor since it happens when "close before start".
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)
Attachments
Issue Links
- links to