masonyc commented on code in PR #16563: URL: https://github.com/apache/kafka/pull/16563#discussion_r1675023791
########## raft/src/test/java/org/apache/kafka/raft/KafkaRaftClientTest.java: ########## @@ -3860,12 +3865,11 @@ private static ReplicaKey replicaKey(int id, boolean withDirectoryId) { return ReplicaKey.of(id, directoryId); } - private static Integer getRandomPort() { - int minPort = 1024; + private static Integer randomReplicaId() { int mockAddressPrefix = 9990; // Number of nodes we can set up if we got a random number that is maximum in the range int reservedNumberOfPorts = 50; int maxPort = 65535 - mockAddressPrefix - reservedNumberOfPorts; Review Comment: updated to generate from 0 - 1024 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org