Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1247 Support rolling upgrade and rollback
  3. RATIS-1817

Do not send StartLeaderElection when leaderLastEntry is null

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0, 2.5.0
    • server
    • None

    Description

      We should not send StartLeaderElection to the transferee when leaderLastEntry is null.
      Because leaderLastEntry is expected to be non-null inĀ RaftServerImpl#startLeaderElection:

      if (leaderLastEntry == null) {
        LOG.warn("{}: receive null leaderLastEntry which is unexpected", getMemberId());
        return ServerProtoUtils.toStartLeaderElectionReplyProto(leaderId, getMemberId(), false);
      }
      

      Attachments

        Issue Links

          Activity

            People

              ckj Kaijie Chen
              ckj Kaijie Chen
              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 - 20m
                  20m