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

RaftServerMetrics.getRaftServerMetrics throws IllegalStateException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.5.0
    • 0.5.0
    • None

    Description

      This issue was observed and reported by hanishakoneru while working on HDDS-2392.

      Datanode restart in an integration test fails with the following exception.

      Caused by: java.lang.IllegalStateException: Not started
      	at org.apache.ratis.thirdparty.com.google.common.base.Preconditions.checkState(Preconditions.java:504)
      	at org.apache.ratis.thirdparty.io.grpc.internal.ServerImpl.getPort(ServerImpl.java:176)
      	at org.apache.ratis.grpc.server.GrpcService.lambda$new$2(GrpcService.java:143)
      	at org.apache.ratis.util.MemoizedSupplier.get(MemoizedSupplier.java:62)
      	at org.apache.ratis.grpc.server.GrpcService.getInetSocketAddress(GrpcService.java:182)
      	at org.apache.ratis.server.impl.RaftServerImpl.lambda$new$0(RaftServerImpl.java:84)
      	at org.apache.ratis.util.MemoizedSupplier.get(MemoizedSupplier.java:62)
      	at org.apache.ratis.server.impl.RaftServerImpl.getPeer(RaftServerImpl.java:136)
      	at org.apache.ratis.server.impl.RaftServerMetrics.<init>(RaftServerMetrics.java:70)
      	at org.apache.ratis.server.impl.RaftServerMetrics.getRaftServerMetrics(RaftServerMetrics.java:62)
      	at org.apache.ratis.server.impl.RaftServerImpl.<init>(RaftServerImpl.java:119)
      	at org.apache.ratis.server.impl.RaftServerProxy.lambda$newRaftServerImpl$2(RaftServerProxy.java:208)
      	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
      Issue Links
      

      Attachments

        1. RATIS-747-000.patch
          1 kB
          Aravindan Vijayan
        2. RATIS-747-001.patch
          3 kB
          Aravindan Vijayan

        Issue Links

          Activity

            People

              avijayan Aravindan Vijayan
              avijayan Aravindan Vijayan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: