Chia-Ping Tsai created KAFKA-20677:
--------------------------------------

             Summary: 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: Chia-Ping Tsai


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