zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mahadev konar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ZOOKEEPER-380) bookkeeper should have a streaming api so that its easier to store checpoints/snapshots in bookkeeper.
Date Wed, 29 Apr 2009 01:45:30 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mahadev konar updated ZOOKEEPER-380:
------------------------------------

    Attachment: ZOOKEEPER-380.patch

I am attaching a patch which changes the current bookkeeper api to move all the reading and
writing to ledgerhandle rather than using BooKKeeper api. The BooKKeeper api acts like a bookkeeper
handle which can be used to create/open ledgers. THe reading and writing can then be done
using ledgerhandle api.

I havent yet finished my streaming api. I wnated to make some changes to the bookkeeper api
so that it easier to use and can be extended to write a streaming interface on the ledgerhandle.

comments?

> bookkeeper should have a streaming api so that its easier to store checpoints/snapshots
in bookkeeper.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-380
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-380
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: contrib-bookkeeper
>            Reporter: Mahadev konar
>         Attachments: ZOOKEEPER-380.patch
>
>
> currently, bookkeeper api allows just a bytes interface which is 
> ld.write(bytes).
> We should have an interface like 
> Stream s = ledger.createStream() (I am not very sure of the interface right now but will
post a more concrete one after giving it a little more thought)
> now this stream can be used to wirte checkpoints as 
> s.write(bytes)
> and then closed to s.close() to close the snapshot. 
> This api could use the current api to implement snapshots as chunks of bytes (buffered
by stream s) that can be written via ld.write(bytes).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message