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

Ming-Yen Chung reassigned KAFKA-20677:
--------------------------------------

    Assignee: Ming-Yen Chung  (was: Chia-Ping Tsai)

> 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)

Reply via email to