Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-8383

Write integration test for electLeaders

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • core
    • None

    Description

      Add tests for electLeaders in AdminClientIntegrationTest. Some cases that we should cover:

      1. Topic doesn't exists => UNKNOWN_TOPIC_OR_PARTITION
      2. Unclean/preferred election not needed => ELECTION_NOT_NEEDED
      3. Unclean/preferred election not possible => ELIGIBLE_LEADERS_NOT_AVAILABLE
      4. Election succeeded => NONE
      5. All partition (partitions==null) => NONE for all performed election. The result map should only contain NONE.

      Attachments

        Issue Links

          Activity

            People

              jagsancio Jose Armando Garcia Sancio
              jagsancio Jose Armando Garcia Sancio
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: