Skip to content

Commit

Permalink
warn if topic not found (apache#4834)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjain1 authored and jihoonson committed Sep 25, 2017
1 parent a6470c1 commit 07446ef
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,9 @@ private void updatePartitionDataFromKafka()
}

List<PartitionInfo> partitions = topics.get(ioConfig.getTopic());
if (partitions == null) {
log.warn("No such topic [%s] found, list of discovered topics [%s]", ioConfig.getTopic(), topics.keySet());
}
int numPartitions = (partitions != null ? partitions.size() : 0);

log.debug("Found [%d] Kafka partitions for topic [%s]", numPartitions, ioConfig.getTopic());
Expand Down

0 comments on commit 07446ef

Please sign in to comment.