Paolo Patierno created KAFKA-5469: ------------------------------------- Summary: Created state changelog topics not logged correctly Key: KAFKA-5469 URL: https://issues.apache.org/jira/browse/KAFKA-5469 Project: Kafka Issue Type: Bug Components: streams Reporter: Paolo Patierno Assignee: Paolo Patierno
In the StreamPartitionAssignor class, the created state changelog topics aren't not logged correctly if the DEBUG log level is set. [2017-06-19 12:18:44,186] DEBUG stream-thread [streams-temperature-6d25c7ff-0927-4469-8ab3-24444685e7d8-StreamThread-1] Created state changelog topics {streams-temperature-KSTREAM-REDUCE-STATE-STORE-0000000002-changelog=org.apache.kafka.streams.processor.internals.StreamPartitionAssignor$InternalTopicMetadata@65ae7693} from the parsed topology. (org.apache.kafka.streams.processor.internals.StreamPartitionAssignor:477) against repartition topics which are well logged : [2017-06-19 12:18:37,871] DEBUG stream-thread [streams-temperature-6d25c7ff-0927-4469-8ab3-24444685e7d8-StreamThread-1] Created repartition topics [Partition(topic = streams-temperature-KSTREAM-REDUCE-STATE-STORE-0000000002-repartition, partition = 0, leader = none, replicas = [], isr = [])] from the parsed topology. (org.apache.kafka.streams.processor.internals.StreamPartitionAssignor:402) At same time if source topics are not created before launching the stream application, the state changelog topics log shows just {} (the placeholder) while for repartition topics the [] that is right because it's an empty list. It seems that there are two problems. For state changelog topics the values() is not used but then InternalTopicMetadata hasn't a toString() for having a well formatted output. I'm already working on that .. -- This message was sent by Atlassian JIRA (v6.4.14#64029)