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

testLeaderStepDown may fail with NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.3.0
    • test
    • None

    Description

      2019-03-30 04:33:50,166 ERROR ratis.MiniRaftCluster (MiniRaftCluster.java:runWithNewCluster(122)) - Failed org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:107)
      java.lang.NullPointerException
      	at org.apache.ratis.MiniRaftCluster.toRaftPeer(MiniRaftCluster.java:384)
      	at org.apache.ratis.MiniRaftCluster.removePeers(MiniRaftCluster.java:431)
      	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.runTestAddRemovePeers(RaftReconfigurationBaseTest.java:128)
      	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.lambda$testLeaderStepDown$3(RaftReconfigurationBaseTest.java:121)
      	at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:119)
      	at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:107)
      	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.testLeaderStepDown(RaftReconfigurationBaseTest.java:121)
      	...
      

      Attachments

        1. r512_20190330.patch
          4 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: