bookkeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sijie Guo <guosi...@gmail.com>
Subject Re: Using BK as WAL and accessing ledger metadata
Date Fri, 08 Feb 2013 05:00:35 GMT
Ivan,

I think we already have similar interface in LedgerManager,
"LedgerRangeIterator getLedgerRanges()". I think it would be quite
straightforward to expose it.

-Sijie


On Wed, Feb 6, 2013 at 7:41 AM, Ivan Kelly <ivank@apache.org> wrote:

> On Wed, Feb 06, 2013 at 10:29:02AM -0500, Whitney Sorenson wrote:
> > I think adding isClosed is a step in the right direction, but I'd
> > also like to see a method like BkAdmin#getLedgerIds - that way I
> > don't need to track the list of ledger ids in zk myself.
> We already have a jira for this
> https://issues.apache.org/jira/browse/BOOKKEEPER-257
>
> A scanner type interface would be best for this though, so that if
> there's a lot of ledger ids, we wouldn't run out of memory etc.
>
> -Ivan
>
>
>

Mime
View raw message