You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Paolo Patierno (Jira)" <ji...@apache.org> on 2022/11/21 11:58:00 UTC

[jira] [Created] (KAFKA-14411) Logging warning when partitions don't exist on assign request

Paolo Patierno created KAFKA-14411:
--------------------------------------

             Summary: Logging warning when partitions don't exist on assign request
                 Key: KAFKA-14411
                 URL: https://issues.apache.org/jira/browse/KAFKA-14411
             Project: Kafka
          Issue Type: Improvement
          Components: consumer
            Reporter: Paolo Patierno


{{When using the assign method on a consumer providing a non existing topic (and the Kafka cluster has no auto-creation enabled), the log shows messages like.}}
{code:java}
Subscribed to partition(s): not-existing-topic-1
Error while fetching metadata with correlation id 3 : {not-existing-topic=UNKNOWN_TOPIC_OR_PARTITION}{code}
{{which could make sense if at some point the user create the topic and the consumer will be subscribed to it.}}

{{Different is when the topic exists but not the partition requested by the consumer.}}
{code:java}
Subscribed to partition(s): existing-topic-1 {code}
{{The above message shows that the consumer is subscribed but it will start to get messages only when the partition will be created as well. Anyway, the log could be misleading not printing at least a WARNING that the requested partition doesn't exist.}}

{{So, as we have an error on fetching metadata logged when topic not exist (no auto-creation enabled), it could be useful to have WARNING messages in the log about not existing requested partitions.}}



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