You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Matthias J. Sax (JIRA)" <ji...@apache.org> on 2017/09/06 21:39:00 UTC

[jira] [Created] (KAFKA-5848) KafkaConsumer should validate topics/TopicPartitions on subscribe/assign

Matthias J. Sax created KAFKA-5848:
--------------------------------------

             Summary: KafkaConsumer should validate topics/TopicPartitions on subscribe/assign
                 Key: KAFKA-5848
                 URL: https://issues.apache.org/jira/browse/KAFKA-5848
             Project: Kafka
          Issue Type: Bug
          Components: clients
    Affects Versions: 0.11.0.0
            Reporter: Matthias J. Sax
            Priority: Minor


Currently, {{KafkaConsumer}} checks if the provided topics on {{subscribe()}} and {{TopicPartition}} on {{assign()}} don't contain topic names that are {{null}} or an empty string. 

However, it could do some more validation:
 - check if invalid topic characters are in the string (this might be feasible for {Patterns}}, too?)
 - check if provided partition numbers are valid (ie, not negative and maybe not larger than the available partitions?)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)