You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2013/02/12 21:33:13 UTC

[jira] [Resolved] (KAFKA-756) Processor thread blocks due to infinite loop during fetch response send

     [ https://issues.apache.org/jira/browse/KAFKA-756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jun Rao resolved KAFKA-756.
---------------------------

       Resolution: Fixed
    Fix Version/s: 0.8

Thanks for patch v3. Committed to 0.8 with the following minor changes.

1. Added file name in the trace log in FileMessageSet.

2. Rename a local var in Transmission to make it consistent with existing vars.
                
> 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
>             Fix For: 0.8
>
>         Attachments: KAFKA-756.patch, Kafka-756-v2.patch, KAFKA-756-v3.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