Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 86254 invoked from network); 20 Sep 2010 16:42:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Sep 2010 16:42:58 -0000 Received: (qmail 56202 invoked by uid 500); 20 Sep 2010 16:42:56 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 56153 invoked by uid 500); 20 Sep 2010 16:42:55 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 56144 invoked by uid 99); 20 Sep 2010 16:42:55 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Sep 2010 16:42:55 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.213.44] (HELO mail-yw0-f44.google.com) (209.85.213.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Sep 2010 16:42:31 +0000 Received: by ywk9 with SMTP id 9so1911164ywk.31 for ; Mon, 20 Sep 2010 09:42:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.106.2 with SMTP id i2mr9608996ybm.214.1285000923696; Mon, 20 Sep 2010 09:42:03 -0700 (PDT) Sender: scode@scode.org Received: by 10.151.101.3 with HTTP; Mon, 20 Sep 2010 09:42:03 -0700 (PDT) X-Originating-IP: [95.193.61.84] In-Reply-To: References: Date: Mon, 20 Sep 2010 18:42:03 +0200 X-Google-Sender-Auth: uMv_nSHEos1gmmSEm8wyK7FvPLI Message-ID: Subject: Re: commit log question From: Peter Schuller To: user@cassandra.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org > =C2=A0=C2=A0 I have one question about the 'commit log' in Cassandra, so = imagine > we issue a write with QUORUM, if the write was successful then we are > sure that N/2 +1 replicas have the new data.=C2=A0If one of these replica= s > fail, no state is lost because the state is also available from > another machine in the cluster. Do we really need in this case a > durable commit log at all in this case, it should be a very rare case > to need it? It's a matter of what kind of durability you're after. If you want data to be truly committed and persistent even in the phase of e.g. power outages then you want data to be truly persistent. If you don't, you don't. It think whether or not the commit log is durable is somewhat orthogonal to whether you're using QUOROM or not since you may e.g. have a use-case for durable writes at CL.ONE in cases where you need the durability (and are perhaps fine trusting the RAID on one node) but not the immediate consistency with respect to reads. In any case, if you're truly concerned with not loosing data that was supposedly written, don't underestimate the very real possibilities of e.g. power outages affecting multiple writes or even entire data centers. --=20 / Peter Schuller