You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "黃竣陽 (Jira)" <ji...@apache.org> on 2024/06/21 00:34:00 UTC
[jira] [Commented] (KAFKA-17009) Add unit test to query nonexistent replica by describeReplicaLogDirs
[ https://issues.apache.org/jira/browse/KAFKA-17009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17856631#comment-17856631 ]
黃竣陽 commented on KAFKA-17009:
-----------------------------
Im interesting in this issue, Please assign to me.
> 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
> Priority: Minor
>
> 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)