Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-2038

IllegalStateException when ServerState is closed before start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.1.0
    • server
    • None

    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

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h