Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2815

RaftConsensusNonVoterITest.PromoteAndDemote fails if manually-run election fails.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.9.0
    • Fix Version/s: NA
    • Component/s: test
    • Labels:
      None

      Description

      RaftConsensusNonVoterITest.PromoteAndDemote disables normal leader elections and runs an election manually, to avoid some previous flakiness. Unfortunately, this introduces flakiness, because, rarely, the manual election fails when the vote requests time out. The candidate concludes it has lost the election, and then after that the two other voters vote yes.

      The timeout for vote requests is 170ms, which is pretty short. If it were raised to, say, 5s, the test would probably not be flaky anymore.

        Attachments

        1. raft_consensus_nonvoter-itest.txt
          70 kB
          William Berkeley
        2. raft_consensus_nonvoter-itest.txt
          2.89 MB
          Adar Dembo

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wdberkeley William Berkeley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: