[
https://issues.apache.org/jira/browse/BOOKKEEPER-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484018#comment-13484018
]
Vinay commented on BOOKKEEPER-346:
----------------------------------
Thanks Ivan,
You mean to say, After scanning all directories for *.idx files, one more time
scan for *.idx.rloc files.
1) If one x.idx.rloc file found and corresponding x.idx not found earlier, then
rename x.idx.rloc to x.idx and add x to activeLedgers list.
2) if x.idc.rloc file found and also x.idx was also found during first scan,
then just delete x.idx.rloc and proceed.
Am I right?
All these things if I do in
{{org.apache.bookkeeper.bookie.LedgerCacheImpl.getActiveLedgers()}} then no
need of {{start()}} method. Also I can remove similar code in
{{findIndexFile()}}
> Detect IOExceptions in LedgerCache and bookie should look at next ledger
> dir(if any)
> ------------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-346
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-346
> Project: Bookkeeper
> Issue Type: Sub-task
> Components: bookkeeper-server
> Affects Versions: 4.1.0
> Reporter: Rakesh R
> Assignee: Vinay
> Fix For: 4.2.0
>
> Attachments: BOOKKEEPER-346.patch, BOOKKEEPER-346.patch,
> BOOKKEEPER-346.patch, BOOKKEEPER-346.patch, BOOKKEEPER-346.patch,
> BOOKKEEPER-346.patch, BOOKKEEPER-346.patch
>
>
> This jira to detect IOExceptions in "LedgerCache" to iterate over all the
> configured ledger(s).
--
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