kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Kreps (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-756) Processor thread blocks due to infinite loop during fetch response send
Date Tue, 12 Feb 2013 17:39:12 GMT

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

Jay Kreps commented on KAFKA-756:


It would be good to understand how you tested this. Can we reproduce the blocking behavior
w/o this patch (i.e. add a println and send some stuff with a larger fetch size than socket
size). Can we do the same after the patch and validate that it is behaving as we expect...
> Processor thread blocks due to infinite loop during fetch response send
> -----------------------------------------------------------------------
>                 Key: KAFKA-756
>                 URL: https://issues.apache.org/jira/browse/KAFKA-756
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Sriram Subramanian
>            Assignee: Sriram Subramanian
>            Priority: Blocker
>              Labels: bugs, p1
>         Attachments: KAFKA-756.patch, Kafka-756-v2.patch
> This looks to be because of an infinite loop during fetch response send. This happens
because we try to send bytes from a log which has been truncated during send. The total size
to send is calculated at the beginning of the iteration and it does not take into account
the change in log size during send. When send happens, it uses the size calculated at the
start and loops continuously hoping to send more data.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message