You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ketha Aravind (Jira)" <ji...@apache.org> on 2026/06/15 09:30:00 UTC

[jira] [Commented] (KAFKA-20677) Enhance the test coverage of testCannotSendToInternalTopic

    [ https://issues.apache.org/jira/browse/KAFKA-20677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18089068#comment-18089068 ] 

Ketha Aravind commented on KAFKA-20677:
---------------------------------------

Opened a PR for this - [https://github.com/apache/kafka/pull/22575]

> Enhance the test coverage of testCannotSendToInternalTopic 
> -----------------------------------------------------------
>
>                 Key: KAFKA-20677
>                 URL: https://issues.apache.org/jira/browse/KAFKA-20677
>             Project: Kafka
>          Issue Type: Test
>            Reporter: Chia-Ping Tsai
>            Assignee: Ming-Yen Chung
>            Priority: Major
>
> When sending data to an internal topic, we should test the following scenarios.
> 1. auto-create=true and internal topic exists = InvalidTopicException
> 2. auto-create=false and internal topic exists = InvalidTopicException
> 3. auto-create=true and internal topic doesn't exist = InvalidTopicException and internal topic will be created
> 4. auto-create=false and internal topic doesn't exist = UnknownTopicOrPartitionException and internal topic will NOT be created
> The test `testCannotSendToInternalTopic` attempts to cover case_2, but it incorrectly removes the internal topic ...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)