Return-Path: X-Original-To: apmail-zookeeper-bookkeeper-user-archive@minotaur.apache.org Delivered-To: apmail-zookeeper-bookkeeper-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F4ACCFF0 for ; Wed, 30 May 2012 11:14:08 +0000 (UTC) Received: (qmail 52756 invoked by uid 500); 30 May 2012 11:14:08 -0000 Delivered-To: apmail-zookeeper-bookkeeper-user-archive@zookeeper.apache.org Received: (qmail 52677 invoked by uid 500); 30 May 2012 11:14:07 -0000 Mailing-List: contact bookkeeper-user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bookkeeper-user@zookeeper.apache.org Delivered-To: mailing list bookkeeper-user@zookeeper.apache.org Received: (qmail 52656 invoked by uid 99); 30 May 2012 11:14:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 11:14:06 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [193.1.99.77] (HELO gir.skynet.ie) (193.1.99.77) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 11:13:59 +0000 Received: from moloch.vm.bytemark.co.uk (moloch.bleurgh.com [80.68.94.101]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by gir.skynet.ie (Postfix) with ESMTPSA id E1F2D10202 for ; Wed, 30 May 2012 12:13:37 +0100 (IST) Date: Wed, 30 May 2012 13:13:36 +0200 From: Ivan Kelly To: bookkeeper-user@zookeeper.apache.org Subject: Re: Is there any way to set a string name for a ledger and how to do checkpoint ? Message-ID: <20120530111335.GA16393@moloch.vm.bytemark.co.uk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Hi Stone, Currently the bookkeeper API only provides the primatives, and developers need to add their own glue code on top of this. It may be worth your while to take a look at the WAL implementation we did for HDFS[1]. This has "named" ledgers, and allow supports the checkpointing. A "editlog" is a sequence of ledgers, which the journal manager maintains in zookeeper. When a checkpoint is made, the current ledger is closed, and a new one is created. HDFS maintains it's own transaction ids so that it can removed old ledgers which are no longer needed after checkpointing. We have been thinking about pulling out this abstract to make it easier for general use, but not much progress has been made on this yet. Regards Ivan [1] https://github.com/apache/hadoop-common/tree/trunk/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal