Skip to content

Commit

Permalink
correct logs information in KafkaPartitionDiscoverer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiayi Liao committed Apr 14, 2020
1 parent b7c8686 commit dda525d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected List<KafkaTopicPartition> getAllPartitionsForTopics(List<String> topic
final List<PartitionInfo> kafkaPartitions = kafkaConsumer.partitionsFor(topic);

if (kafkaPartitions == null) {
throw new RuntimeException("Could not fetch partitions for %s. Make sure that the topic exists.".format(topic));
throw new RuntimeException(String.format("Could not fetch partitions for %s. Make sure that the topic exists.", topic));
}

for (PartitionInfo partitionInfo : kafkaPartitions) {
Expand Down

0 comments on commit dda525d

Please sign in to comment.