You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Sijie Guo (JIRA)" <ji...@apache.org> on 2011/08/30 12:29:37 UTC

[jira] [Created] (BOOKKEEPER-61) BufferedChannel read endless when the remaining bytes of file is less than the capacity of read buffer

BufferedChannel read endless when the remaining bytes of file is less than the capacity of read buffer
------------------------------------------------------------------------------------------------------

                 Key: BOOKKEEPER-61
                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-61
             Project: Bookkeeper
          Issue Type: Bug
          Components: bookkeeper-server
    Affects Versions: 3.4.0
            Reporter: Sijie Guo


If last record in entry log file is truncated (length of data is short than expected length), bookie went into infinite loop on reading this record.

A truncated record can be caused in following cases:
1) bookie server is killed during bookie restart to relay logs.
2) bookie server is killed when bookie does adding entry operation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (BOOKKEEPER-61) BufferedChannel read endless when the remaining bytes of file is less than the capacity of read buffer

Posted by "Flavio Junqueira (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flavio Junqueira reassigned BOOKKEEPER-61:
------------------------------------------

    Assignee: Sijie Guo

> BufferedChannel read endless when the remaining bytes of file is less than the capacity of read buffer
> ------------------------------------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-61
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-61
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 3.4.0
>            Reporter: Sijie Guo
>            Assignee: Sijie Guo
>         Attachments: bookkeeper-61.patch
>
>
> If last record in entry log file is truncated (length of data is short than expected length), bookie went into infinite loop on reading this record.
> A truncated record can be caused in following cases:
> 1) bookie server is killed during bookie restart to relay logs.
> 2) bookie server is killed when bookie does adding entry operation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (BOOKKEEPER-61) BufferedChannel read endless when the remaining bytes of file is less than the capacity of read buffer

Posted by "Benjamin Reed (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Reed updated BOOKKEEPER-61:
------------------------------------

    Fix Version/s: 3.4.0

+1 great fix and test!
                
> BufferedChannel read endless when the remaining bytes of file is less than the capacity of read buffer
> ------------------------------------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-61
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-61
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 3.4.0
>            Reporter: Sijie Guo
>            Assignee: Sijie Guo
>             Fix For: 3.4.0
>
>         Attachments: bookkeeper-61.patch
>
>
> If last record in entry log file is truncated (length of data is short than expected length), bookie went into infinite loop on reading this record.
> A truncated record can be caused in following cases:
> 1) bookie server is killed during bookie restart to relay logs.
> 2) bookie server is killed when bookie does adding entry operation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (BOOKKEEPER-61) BufferedChannel read endless when the remaining bytes of file is less than the capacity of read buffer

Posted by "Sijie Guo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sijie Guo updated BOOKKEEPER-61:
--------------------------------

    Attachment: bookkeeper-61.patch

return number of bytes been read when reach the end of file

> BufferedChannel read endless when the remaining bytes of file is less than the capacity of read buffer
> ------------------------------------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-61
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-61
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 3.4.0
>            Reporter: Sijie Guo
>         Attachments: bookkeeper-61.patch
>
>
> If last record in entry log file is truncated (length of data is short than expected length), bookie went into infinite loop on reading this record.
> A truncated record can be caused in following cases:
> 1) bookie server is killed during bookie restart to relay logs.
> 2) bookie server is killed when bookie does adding entry operation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira