[
https://issues.apache.org/jira/browse/BOOKKEEPER-841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14487667#comment-14487667
]
Matteo Merli commented on BOOKKEEPER-841:
-----------------------------------------
[~hustlmsp] Very good point, I've changed the code to encapsulate the ledgers
map into an entry for ledgerId=-1.
There's still a unit test which I didn't catch before because I already had a
fix for BOOKKEEPER-695. I think that jira should be a pre-requisite to this
patch, given that instead of scanning, now the method returns directly the
EntryLogMetadata, so in case of exceptions there will be no partial result
available.
> Bookie should calculate ledgers map writing a new entry log file
> ----------------------------------------------------------------
>
> Key: BOOKKEEPER-841
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-841
> Project: Bookkeeper
> Issue Type: Improvement
> Components: bookkeeper-server
> Reporter: Sijie Guo
> Assignee: Matteo Merli
> Fix For: 4.4.0
>
> Attachments:
> 0001-BOOKKEEPER-841-Bookie-should-calculate-ledgers-map-w.patch
>
>
> Bookie should calculate ledgers map when writing a new entry log file. so the
> bookie doesn't need to scan that entry log file again, which it would improve
> garbage collection efficiency
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)