You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/06/20 19:51:00 UTC
[jira] [Created] (KAFKA-17009) Add unit test to query nonexistent replica by describeReplicaLogDirs
Chia-Ping Tsai created KAFKA-17009:
--------------------------------------
Summary: Add unit test to query nonexistent replica by describeReplicaLogDirs
Key: KAFKA-17009
URL: https://issues.apache.org/jira/browse/KAFKA-17009
Project: Kafka
Issue Type: Test
Reporter: Chia-Ping Tsai
Assignee: Chia-Ping Tsai
our docs[0] says that "currentReplicaLogDir will be null if the replica is not found", so it means `describeReplicaLogDirs` can accept the queries for nonexistent replicas. However, current UT [1] only verify the replica is not found due to storage error. We should add a UT to verify it for nonexistent replica
[0] https://github.com/apache/kafka/blob/391778b8d737f4af074422ffe61bc494b21e6555/clients/src/main/java/org/apache/kafka/clients/admin/DescribeReplicaLogDirsResult.java#L71
[1] https://github.com/apache/kafka/blob/trunk/clients/src/test/java/org/apache/kafka/clients/admin/KafkaAdminClientTest.java#L2356
--
This message was sent by Atlassian Jira
(v8.20.10#820010)