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 2013/03/07 08:04:14 UTC

[jira] [Commented] (BOOKKEEPER-583) Read from a ReadOnlyBookie fails if index fileinfo is not in ledger cache

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

Sijie Guo commented on BOOKKEEPER-583:
--------------------------------------

good catch, thanks Vinay. 

one question, why we need to moveLedgerIndexFile in both getFileInfo and flushLedger? I think we only need to moveLedgerIndexFile when flushLedger. I can't remembered why we need to do it in getFileInfo. so could we simply remove moveLedgerIndexFile calls in getFileInfo?
                
> Read from a ReadOnlyBookie fails if index fileinfo is not in ledger cache
> -------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-583
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-583
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.2.1
>            Reporter: Vinay
>            Assignee: Vinay
>         Attachments: BOOKKEEPER-583.patch
>
>
> Read from a ReadOnlyBookie fails is the Bookie is restarted after writing a ledger.
> i.e. fileInfo for the ledger to be read is not present in the fileInfoCache

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