[ https://issues.apache.org/jira/browse/KAFKA-17009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai resolved KAFKA-17009. ------------------------------------ Fix Version/s: 3.9.0 Resolution: Fixed > 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: 黃竣陽 > Priority: Minor > Fix For: 3.9.0 > > > 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)