You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Rui Wang (Jira)" <ji...@apache.org> on 2020/09/09 23:39:00 UTC

[jira] [Updated] (RATIS-1060) Fix TestRaftReconfiguration.testRestorePriority

     [ https://issues.apache.org/jira/browse/RATIS-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rui Wang updated RATIS-1060:
----------------------------
    Description: 

{code:java}
[ERROR] testRestorePriority(org.apache.ratis.netty.TestRaftReconfigurationWithNetty)  Time elapsed: 46.338 s  <<< ERROR!
java.lang.IllegalStateException: 
No leader yet  for group-68AB444462CB: printing group-68AB444462CB
  s0:  RUNNING [
   FOLLOWER s0@group-68AB444462CB:t1, leader=null, voted=s2, raftlog=s0@group-68AB444462CB-SegmentedRaftLog:OPENED:c-1,f-1,i0, conf=-1: [], old=null STARTING
     LEADER s0@group-754DA2993F51:t2, leader=s0, voted=s0, raftlog=s0@group-754DA2993F51-SegmentedRaftLog:OPENED:c2,f2,i2, conf=1: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:0, s2:0.0.0.0:42831:0], old=null RUNNING] size=2
  s1:  RUNNING [
   FOLLOWER s1@group-68AB444462CB:t1, leader=null, voted=s2, raftlog=s1@group-68AB444462CB-SegmentedRaftLog:OPENED:c-1,f-1,i0, conf=-1: [], old=null STARTING
   FOLLOWER s1@group-754DA2993F51:t2, leader=s0, voted=s0, raftlog=s1@group-754DA2993F51-SegmentedRaftLog:OPENED:c2,f2,i2, conf=1: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:0, s2:0.0.0.0:42831:0], old=null RUNNING] size=2
 s2:  RUNNING [
   FOLLOWER s2@group-68AB444462CB:t197, leader=null, voted=s2, raftlog=s2@group-68AB444462CB-SegmentedRaftLog:OPENED:c-1,f0,i0, conf=0: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:1, s2:0.0.0.0:42831:2], old=null RUNNING
   FOLLOWER s2@group-754DA2993F51:t2, leader=s0, voted=s0, raftlog=s2@group-754DA2993F51-SegmentedRaftLog:OPENED:c2,f2,i2, conf=1: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:0, s2:0.0.0.0:42831:0], old=null RUNNING] size=2
	at org.apache.ratis.MiniRaftCluster.newIllegalStateExceptionForNoLeaders(MiniRaftCluster.java:506)
	at org.apache.ratis.RaftTestUtil.lambda$waitForLeader$1(RaftTestUtil.java:93)
	at org.apache.ratis.MiniRaftCluster.getLeader(MiniRaftCluster.java:539)
	at org.apache.ratis.MiniRaftCluster.getLeader(MiniRaftCluster.java:532)
	at org.apache.ratis.RaftTestUtil.lambda$waitForLeader$3(RaftTestUtil.java:101)
	at org.apache.ratis.util.JavaUtils.attempt(JavaUtils.java:160)
	at org.apache.ratis.util.JavaUtils.attemptRepeatedly(JavaUtils.java:146)
	at org.apache.ratis.RaftTestUtil.waitForLeader(RaftTestUtil.java:100)
	at org.apache.ratis.RaftTestUtil.waitForLeader(RaftTestUtil.java:80)
	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.checkPriority(RaftReconfigurationBaseTest.java:75)
	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.lambda$testRestorePriority$0(RaftReconfigurationBaseTest.java:115)
	at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:125)
	at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:113)
	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.testRestorePriority(RaftReconfigurationBaseTest.java:91)
{code}



  was:

[ERROR] testRestorePriority(org.apache.ratis.netty.TestRaftReconfigurationWithNetty)  Time elapsed: 46.338 s  <<< ERROR!
java.lang.IllegalStateException: 
No leader yet  for group-68AB444462CB: printing group-68AB444462CB
  s0:  RUNNING [
   FOLLOWER s0@group-68AB444462CB:t1, leader=null, voted=s2, raftlog=s0@group-68AB444462CB-SegmentedRaftLog:OPENED:c-1,f-1,i0, conf=-1: [], old=null STARTING
     LEADER s0@group-754DA2993F51:t2, leader=s0, voted=s0, raftlog=s0@group-754DA2993F51-SegmentedRaftLog:OPENED:c2,f2,i2, conf=1: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:0, s2:0.0.0.0:42831:0], old=null RUNNING] size=2
  s1:  RUNNING [
   FOLLOWER s1@group-68AB444462CB:t1, leader=null, voted=s2, raftlog=s1@group-68AB444462CB-SegmentedRaftLog:OPENED:c-1,f-1,i0, conf=-1: [], old=null STARTING
   FOLLOWER s1@group-754DA2993F51:t2, leader=s0, voted=s0, raftlog=s1@group-754DA2993F51-SegmentedRaftLog:OPENED:c2,f2,i2, conf=1: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:0, s2:0.0.0.0:42831:0], old=null RUNNING] size=2
 s2:  RUNNING [
   FOLLOWER s2@group-68AB444462CB:t197, leader=null, voted=s2, raftlog=s2@group-68AB444462CB-SegmentedRaftLog:OPENED:c-1,f0,i0, conf=0: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:1, s2:0.0.0.0:42831:2], old=null RUNNING
   FOLLOWER s2@group-754DA2993F51:t2, leader=s0, voted=s0, raftlog=s2@group-754DA2993F51-SegmentedRaftLog:OPENED:c2,f2,i2, conf=1: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:0, s2:0.0.0.0:42831:0], old=null RUNNING] size=2
	at org.apache.ratis.MiniRaftCluster.newIllegalStateExceptionForNoLeaders(MiniRaftCluster.java:506)
	at org.apache.ratis.RaftTestUtil.lambda$waitForLeader$1(RaftTestUtil.java:93)
	at org.apache.ratis.MiniRaftCluster.getLeader(MiniRaftCluster.java:539)
	at org.apache.ratis.MiniRaftCluster.getLeader(MiniRaftCluster.java:532)
	at org.apache.ratis.RaftTestUtil.lambda$waitForLeader$3(RaftTestUtil.java:101)
	at org.apache.ratis.util.JavaUtils.attempt(JavaUtils.java:160)
	at org.apache.ratis.util.JavaUtils.attemptRepeatedly(JavaUtils.java:146)
	at org.apache.ratis.RaftTestUtil.waitForLeader(RaftTestUtil.java:100)
	at org.apache.ratis.RaftTestUtil.waitForLeader(RaftTestUtil.java:80)
	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.checkPriority(RaftReconfigurationBaseTest.java:75)
	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.lambda$testRestorePriority$0(RaftReconfigurationBaseTest.java:115)
	at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:125)
	at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:113)
	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.testRestorePriority(RaftReconfigurationBaseTest.java:91)


> Fix TestRaftReconfiguration.testRestorePriority
> -----------------------------------------------
>
>                 Key: RATIS-1060
>                 URL: https://issues.apache.org/jira/browse/RATIS-1060
>             Project: Ratis
>          Issue Type: Sub-task
>            Reporter: Rui Wang
>            Assignee: Rui Wang
>            Priority: Major
>
> {code:java}
> [ERROR] testRestorePriority(org.apache.ratis.netty.TestRaftReconfigurationWithNetty)  Time elapsed: 46.338 s  <<< ERROR!
> java.lang.IllegalStateException: 
> No leader yet  for group-68AB444462CB: printing group-68AB444462CB
>   s0:  RUNNING [
>    FOLLOWER s0@group-68AB444462CB:t1, leader=null, voted=s2, raftlog=s0@group-68AB444462CB-SegmentedRaftLog:OPENED:c-1,f-1,i0, conf=-1: [], old=null STARTING
>      LEADER s0@group-754DA2993F51:t2, leader=s0, voted=s0, raftlog=s0@group-754DA2993F51-SegmentedRaftLog:OPENED:c2,f2,i2, conf=1: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:0, s2:0.0.0.0:42831:0], old=null RUNNING] size=2
>   s1:  RUNNING [
>    FOLLOWER s1@group-68AB444462CB:t1, leader=null, voted=s2, raftlog=s1@group-68AB444462CB-SegmentedRaftLog:OPENED:c-1,f-1,i0, conf=-1: [], old=null STARTING
>    FOLLOWER s1@group-754DA2993F51:t2, leader=s0, voted=s0, raftlog=s1@group-754DA2993F51-SegmentedRaftLog:OPENED:c2,f2,i2, conf=1: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:0, s2:0.0.0.0:42831:0], old=null RUNNING] size=2
>  s2:  RUNNING [
>    FOLLOWER s2@group-68AB444462CB:t197, leader=null, voted=s2, raftlog=s2@group-68AB444462CB-SegmentedRaftLog:OPENED:c-1,f0,i0, conf=0: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:1, s2:0.0.0.0:42831:2], old=null RUNNING
>    FOLLOWER s2@group-754DA2993F51:t2, leader=s0, voted=s0, raftlog=s2@group-754DA2993F51-SegmentedRaftLog:OPENED:c2,f2,i2, conf=1: [s0:0.0.0.0:33817:0, s1:0.0.0.0:44367:0, s2:0.0.0.0:42831:0], old=null RUNNING] size=2
> 	at org.apache.ratis.MiniRaftCluster.newIllegalStateExceptionForNoLeaders(MiniRaftCluster.java:506)
> 	at org.apache.ratis.RaftTestUtil.lambda$waitForLeader$1(RaftTestUtil.java:93)
> 	at org.apache.ratis.MiniRaftCluster.getLeader(MiniRaftCluster.java:539)
> 	at org.apache.ratis.MiniRaftCluster.getLeader(MiniRaftCluster.java:532)
> 	at org.apache.ratis.RaftTestUtil.lambda$waitForLeader$3(RaftTestUtil.java:101)
> 	at org.apache.ratis.util.JavaUtils.attempt(JavaUtils.java:160)
> 	at org.apache.ratis.util.JavaUtils.attemptRepeatedly(JavaUtils.java:146)
> 	at org.apache.ratis.RaftTestUtil.waitForLeader(RaftTestUtil.java:100)
> 	at org.apache.ratis.RaftTestUtil.waitForLeader(RaftTestUtil.java:80)
> 	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.checkPriority(RaftReconfigurationBaseTest.java:75)
> 	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.lambda$testRestorePriority$0(RaftReconfigurationBaseTest.java:115)
> 	at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:125)
> 	at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:113)
> 	at org.apache.ratis.server.impl.RaftReconfigurationBaseTest.testRestorePriority(RaftReconfigurationBaseTest.java:91)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)