Return-Path: Delivered-To: apmail-incubator-cassandra-dev-archive@minotaur.apache.org Received: (qmail 37516 invoked from network); 26 Feb 2010 19:40:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2010 19:40:56 -0000 Received: (qmail 60103 invoked by uid 500); 26 Feb 2010 19:40:55 -0000 Delivered-To: apmail-incubator-cassandra-dev-archive@incubator.apache.org Received: (qmail 60090 invoked by uid 500); 26 Feb 2010 19:40:55 -0000 Mailing-List: contact cassandra-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-dev@incubator.apache.org Received: (qmail 60082 invoked by uid 99); 26 Feb 2010 19:40:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 19:40:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rff.rff@gmail.com designates 74.125.78.150 as permitted sender) Received: from [74.125.78.150] (HELO ey-out-1920.google.com) (74.125.78.150) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 19:40:45 +0000 Received: by ey-out-1920.google.com with SMTP id 4so162618eyg.8 for ; Fri, 26 Feb 2010 11:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=EjMxmhe5HNO5W5C6XJ3K2ROKwIza4EK7+srxlcVRuEo=; b=CIeiE7mP23+yOuzrJkenbxZMcImeMpKJe+SILNtfmHUPT2hYddCDk77jt0tvEhQIei 3G9oc3AJjEE15EZ4es7Hbmro4e819X7+tb8GAR+YAKDbqMAi+xUO7TXzrGD+13eMzHkR GGi5PJp9wI4fL0S78euKENXnIK88o3Mk3iKIc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=XTEtVNOIHeBZIAANAWhJFXA20AV+iKcHkgXeDzNjDICZiShOmCxJAz6pSfzaePtqTD z1kt1ckU8RH9edvzjqMkheylhxEEYvep0Zh1rhPNvxuYs9iM39URzQFo+S89c8qGflNY +ednltUQwigocpJHOW8P4DQU1JD3NwFbNfIHA= MIME-Version: 1.0 Received: by 10.213.24.27 with SMTP id t27mr434669ebb.73.1267213223095; Fri, 26 Feb 2010 11:40:23 -0800 (PST) In-Reply-To: <1c6fcff1002260922m12fbcc1dg97048ec1bc727c39@mail.gmail.com> References: <1c6fcff1002260922m12fbcc1dg97048ec1bc727c39@mail.gmail.com> From: gabriele renzi Date: Fri, 26 Feb 2010 20:40:03 +0100 Message-ID: <828083e71002261140n3f54252p264b6288eb5d95f@mail.gmail.com> Subject: Re: Commit log changes in 0.7 To: cassandra-dev@incubator.apache.org, gdusbabek@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Feb 26, 2010 at 6:22 PM, Gary Dusbabek wrote: > The commit log currently has a header section whose size is constant, > but is a function of the total number of defined column families. > This isn't going to work with CASSANDRA-44 where CFs can be added or > removed on the fly. =A0I see two options: > > 1. =A0hard code the size of the header to accommodate a maximum number > of CFs. =A0I don't like this approach because it imposes a hard limit. > 2. =A0move the header into its own file. =A0I don't like this because it > adds complexity. > > Any better other ideas? not a better idea, but just trying to understand: is there a reason the fixed size "hard limit" can't be expanded when a new commit log is created ? E.g. start with N column families and leave space for M of them, if one is added, a new commitlog is started with a larger header, and the logic for cleaning up non-active logs becomes xoring the short header against the equivalent portion of the new header. I think there is some additional complexity, such as the need for a prologue stating size/offsets, or if/how to handle deletions, but it doesn't seem much. --=20 blog en: http://www.riffraff.info blog it: http://riffraff.blogsome.com