[jira] [Created] (FLINK-17134) Wrong logging information in Kafka010PartitionDiscoverer#L80

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-17134) Wrong logging information in Kafka010PartitionDiscoverer#L80

Shang Yuanchun (Jira)
Jiayi Liao created FLINK-17134:
----------------------------------

             Summary: Wrong logging information in Kafka010PartitionDiscoverer#L80
                 Key: FLINK-17134
                 URL: https://issues.apache.org/jira/browse/FLINK-17134
             Project: Flink
          Issue Type: Improvement
          Components: Connectors / Kafka
    Affects Versions: 1.10.0
            Reporter: Jiayi Liao


https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-kafka-0.10/src/main/java/org/apache/flink/streaming/connectors/kafka/internal/Kafka010PartitionDiscoverer.java#L80


{code:java}
throw new RuntimeException("Could not fetch partitions for %s. Make sure that the topic exists.".format(topic));
{code}

equals to {{String.format(topic)}}, which

should be replaced with

{code:java}
throw new RuntimeException(String.format("Could not fetch partitions for %s. Make sure that the topic exists.", topic));
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)