You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "José Armando García Sancio (Jira)" <ji...@apache.org> on 2024/06/29 16:36:00 UTC
[jira] [Created] (KAFKA-17055) Use random replica ids in KafkaRaftClientTest and KafkaRaftClientSnapshotTest
José Armando García Sancio created KAFKA-17055:
--------------------------------------------------
Summary: Use random replica ids in KafkaRaftClientTest and KafkaRaftClientSnapshotTest
Key: KAFKA-17055
URL: https://issues.apache.org/jira/browse/KAFKA-17055
Project: Kafka
Issue Type: Sub-task
Reporter: José Armando García Sancio
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)