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

TimeoutScheduler throws IllegalStateException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.5.0
    • util
    • None

    Description

      Shashikant Banerjee 10:38 AM2019-10-16 11:45:43,150 ERROR [java.util.concurrent.ThreadPoolExecutor$Worker@5d45ac64[State = -1, empty queue]] org.apache.ratis.client.impl.OrderedAsync: Failed* to retry RaftClientRequest:client-A67D4B37A25B->afda84a7-3b53-4b20-bd3b-5400b60a5014@group-DC6EDD5625BC, cid=9, seq=3*, RW, ...
      java.lang.IllegalStateException
          at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:36)
          at org.apache.ratis.util.TimeoutScheduler.onTimeout(TimeoutScheduler.java:124)
          at org.apache.ratis.util.TimeoutScheduler.onTimeout(TimeoutScheduler.java:110)
          at org.apache.ratis.util.TimeoutScheduler.onTimeout(TimeoutScheduler.java:180)
          at org.apache.ratis.grpc.client.GrpcClientProtocolClient$AsyncStreamObservers.onNext(GrpcClientProtocolClient.java:318)
          at org.apache.ratis.grpc.client.GrpcClientRpc.sendRequestAsync(GrpcClientRpc.java:68)
          at org.apache.ratis.client.impl.OrderedAsync.sendRequest(OrderedAsync.java:208)
          at org.apache.ratis.client.impl.OrderedAsync.sendRequestWithRetry(OrderedAsync.java:169)
          at org.apache.ratis.util.SlidingWindow$Client.sendOrDelayRequest(SlidingWindow.java:278)
          at org.apache.ratis.util.SlidingWindow$Client.retry(SlidingWindow.java:294)
          at org.apache.ratis.client.impl.OrderedAsync.lambda$scheduleWithTimeout$7(OrderedAsync.java:195)
          at org.apache.ratis.util.TimeoutScheduler.lambda$onTimeout$0(TimeoutScheduler.java:113)
          at org.apache.ratis.util.TimeoutScheduler.lambda$onTimeout$1(TimeoutScheduler.java:133)
          at org.apache.ratis.util.LogUtils.runAndLog(LogUtils.java:50)
          at org.apache.ratis.util.LogUtils$1.run(LogUtils.java:91)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        1. r718_20191017.patch
          12 kB
          Tsz-wo Sze
        2. r718_20191021.patch
          12 kB
          Tsz-wo Sze
        3. r718_20191022.patch
          13 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              shashikant Shashikant Banerjee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: