kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo Patierno (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-5469) Created state changelog topics not logged correctly
Date Tue, 20 Jun 2017 08:16:00 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-5469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16055330#comment-16055330

Paolo Patierno commented on KAFKA-5469:

[~ijuma] I'd like to add a little improvement on StreamPartitionAssignor logging. Can I change
this JIRA name and pushing another commit here avoiding a new JIRA for that ?

> 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.
> {code}
> [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)
> {code}
> against repartition topics which are well logged :
> {code}
> [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)
> {code}
> 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

View raw message