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

LogAppender.getPrevious throws IllegalStateException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.4.0
    • server
    • None

    Description

      GrpcLogAppender#createRequest throws IllegalStateException

      2019-05-19 13:29:29,879 ERROR impl.LogAppender (LogAppender.java:run(90)) - org.apache.ratis.server.impl.LogAppender$AppenderDaemon@f7cf7bd unexpected exception
      java.lang.IllegalStateException: GrpcLogAppender(c04faabb-66d4-4cd0-85c2-412d28ae70e1->bd0ce7cf-56a1-44e8-bf84-3cf5d431c1cf): follower's nextIndex = 1 != logStartIndex = 9995
              at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:63)
              at org.apache.ratis.server.impl.LogAppender.getPrevious(LogAppender.java:179)
              at org.apache.ratis.server.impl.LogAppender.createRequest(LogAppender.java:186)
              at org.apache.ratis.grpc.server.GrpcLogAppender.appendLog(GrpcLogAppender.java:169)
              at org.apache.ratis.grpc.server.GrpcLogAppender.runAppenderImpl(GrpcLogAppender.java:113)
              at org.apache.ratis.server.impl.LogAppender$AppenderDaemon.run(LogAppender.java:80)
              at java.lang.Thread.run(Thread.java:748)
      
      

      Attachments

        1. r559_20190522.patch
          6 kB
          Tsz-wo Sze
        2. r559_20190523.patch
          6 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            msingh Mukul Kumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: