Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14094 KIP-853: KRaft controller membership changes
  3. KAFKA-17055

Use random replica ids in KafkaRaftClientTest and KafkaRaftClientSnapshotTest

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None

    Description

      All of the tests in KafkakRaftClientTest and KafkaRaftClientSnapshotTest use well known ids like 0, 1, etc. Because of this those tests were not able to catch a bug in the BeginQuorumEpoch schema were the default value for VoterId was 0 instead of -1.

      Improve those tests by using random positive numbers to lower the probability that they will match the default value of a schema.

      Attachments

        Issue Links

          Activity

            People

              masonc Mason Chen
              jsancio José Armando García Sancio
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: