Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15271

ITNodeTest.testFollowerStartStopFollowing is still flaky

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha2
    • 3.0.0-alpha4
    • None

    Description

      org.opentest4j.AssertionFailedError
      org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
        at org.apache.ignite.raft.jraft.core.ITNodeTest.testFollowerStartStopFollowing(ITNodeTest.java:2678)
      

      The issue is caused by (unexpected) excessive number of state changes during leader election on term=2:

      INFO: onStartFollowing: LeaderChangeContext [leaderId=172.17.0.6:5004, term=2, status=Status[ENEWLEADER<10011>: Follower receives message from new leader with the same term.]].
      Aug 09, 2021 9:32:37 AM org.apache.ignite.lang.IgniteLogger logInternal
      INFO: onStartFollowing: LeaderChangeContext [leaderId=172.17.0.6:5004, term=2, status=Status[ENEWLEADER<10011>: Follower receives message from new leader with the same term.]].
      Aug 09, 2021 9:32:37 AM org.apache.ignite.lang.IgniteLogger logInternal
      Aug 09, 2021 9:32:37 AM org.apache.ignite.lang.IgniteLogger logInternal
      INFO: onStartFollowing: LeaderChangeContext [leaderId=172.17.0.6:5004, term=2, status=Status[ENEWLEADER<10011>: Follower receives message from new leader with the same term.]].
      Aug 09, 2021 9:32:37 AM org.apache.ignite.lang.IgniteLogger logInternal
      INFO: onStopFollowing: LeaderChangeContext [leaderId=172.17.0.6:5004, term=2, status=Status[EVOTEFORCANDIDATE<10010>: Raft node votes for some candidate, step down to restart election_timer.]].
      Aug 09, 2021 9:32:37 AM org.apache.ignite.lang.IgniteLogger logInternal
      Aug 09, 2021 9:32:37 AM org.apache.ignite.lang.IgniteLogger logInternal
      WARNING: Node <unitest/172.17.0.6:5004> received invalid RequestVoteResponse from 172.17.0.6:5006, state not in STATE_CANDIDATE but STATE_LEADER.
      Aug 09, 2021 9:32:37 AM org.apache.ignite.lang.IgniteLogger logInternal
      INFO: onStartFollowing: LeaderChangeContext [leaderId=172.17.0.6:5004, term=2, status=Status[ENEWLEADER<10011>: Follower receives message from new leader with the same term.]].
      

      Attachments

        Issue Links

          Activity

            People

              ascherbakov Alexey Scherbakov
              ascherbakov Alexey Scherbakov
              Mirza Aliev Mirza Aliev
              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 - 10m
                  10m