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

Write integration test for electLeaders

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: