You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Arup Malakar (JIRA)" <ji...@apache.org> on 2013/11/26 21:22:35 UTC

[jira] [Commented] (KAFKA-1146) toString() on KafkaStream gets stuck indefinitely

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

Arup Malakar commented on KAFKA-1146:
-------------------------------------

[~jjkoshy] Yes overriding would definitely be beneficial. I can submit a patch for this. Any suggestion on what I could put in the toString method?

> toString() on KafkaStream gets stuck indefinitely
> -------------------------------------------------
>
>                 Key: KAFKA-1146
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1146
>             Project: Kafka
>          Issue Type: Bug
>          Components: consumer
>    Affects Versions: 0.8
>            Reporter: Arup Malakar
>            Assignee: Neha Narkhede
>            Priority: Trivial
>             Fix For: 0.8.1
>
>
> There is no toString implementation for KafkaStream, so if a user tries to print the stream it falls back to default toString implementation which tries to iterate over the collection and gets stuck indefinitely as it awaits messages. KafkaStream could instead override the toString and return a verbose description of the stream with topic name etc.
> println("Current stream: " + stream) // This call never returns



--
This message was sent by Atlassian JIRA
(v6.1#6144)