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 2026/09/09 04:31:00 UTC

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

     [ https://issues.apache.org/jira/browse/KAFKA-20677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chia-Ping Tsai resolved KAFKA-20677.
------------------------------------
    Fix Version/s: 4.5.0
       Resolution: Fixed

> 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: Ketha Aravind
>            Priority: Major
>             Fix For: 4.5.0
>
>
> 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)