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

Hudson commented on BOOKKEEPER-169:
-----------------------------------

Integrated in bookkeeper-trunk #364 (See 
[https://builds.apache.org/job/bookkeeper-trunk/364/])
    BOOKKEEPER-169: bookie hangs on reading header when encountering partial 
header index file (sijie via ivank) (Revision 1245369)

     Result = SUCCESS
ivank : 
Files : 
* /zookeeper/bookkeeper/trunk/CHANGES.txt
* 
/zookeeper/bookkeeper/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/FileInfo.java
* 
/zookeeper/bookkeeper/trunk/bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/BookieJournalTest.java

                
> bookie hangs on reading header when encountering partial header index file
> --------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-169
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-169
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.0.0
>            Reporter: Sijie Guo
>            Assignee: Ivan Kelly
>             Fix For: 4.1.0
>
>         Attachments: BK-169.diff, BK-169.diff_v2
>
>
> bookie server hangs on reading header part when reading partial header index 
> file (whose header part is less than 1k). This kind of index file existed 
> because bookie server shuts down when writing header of index file.
> bookie server should check file size when reading header. in pre-v3 journal, 
> we don't have master key stored in journal, so if master key is missing, we 
> have no chance to repair it just throw an IOException when reading header. in 
> post-v3 journal, we store master key as an meta entry in journal, so we can 
> rewrite the header part.

--
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

        

Reply via email to