Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1298 Support non-voting members (Listeners)
  3. RATIS-1624

Can't use set configuration to add a new Listener correctly

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0, 3.0.0
    • server
    • None

    Description

      This error will occur in leader node when use set configuration to add a listener.

      java.lang.NullPointerException: n1: Server n3 not found: peers=[n0, n1, n2]
          at java.base/java.util.Objects.requireNonNull(Objects.java:334)
          at org.apache.ratis.util.PeerProxyMap.getProxy(PeerProxyMap.java:111)
          at org.apache.ratis.grpc.server.GrpcLogAppender.getClient(GrpcLogAppender.java:97)
          at org.apache.ratis.grpc.server.GrpcLogAppender.appendLog(GrpcLogAppender.java:215)
          at org.apache.ratis.grpc.server.GrpcLogAppender.run(GrpcLogAppender.java:149)
          at org.apache.ratis.server.leader.LogAppenderDaemon.run(LogAppenderDaemon.java:77)
          at java.base/java.lang.Thread.run(Thread.java:833)

      Attachments

        Issue Links

          Activity

            People

              qian0817 Lei Qian
              qian0817 Lei Qian
              Votes:
              0 Vote for this issue
              Watchers:
              2 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