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

NPE in LogAppender while creating a new request.

    XMLWordPrintableJSON

Details

    Description

      Found the following NPE in the LogAppender while creating a new request.

      2019-05-30 08:10:44,275 ERROR impl.LogAppender (LogAppender.java:run(90)) - org.apache.ratis.server.impl.LogAppender$AppenderDaemon@5e4b44cc unexpected exception
      java.lang.NullPointerException
              at java.util.Objects.requireNonNull(Objects.java:203)
              at java.util.Optional.<init>(Optional.java:96)
              at java.util.Optional.of(Optional.java:108)
              at org.apache.ratis.server.impl.ServerProtoUtils.getStateMachineEntry(ServerProtoUtils.java:197)
              at org.apache.ratis.server.impl.ServerProtoUtils.getStateMachineData(ServerProtoUtils.java:205)
              at org.apache.ratis.server.impl.ServerProtoUtils.shouldReadStateMachineData(ServerProtoUtils.java:210)
              at org.apache.ratis.server.raftlog.segmented.SegmentedRaftLog.getEntryWithData(SegmentedRaftLog.java:206)
              at org.apache.ratis.server.impl.LogAppender.createRequest(LogAppender.java:209)
              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. r577_20190604.patch
          1 kB
          Tsz-wo Sze

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: