Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F265D96D4 for ; Sat, 25 Aug 2012 04:55:51 +0000 (UTC) Received: (qmail 42599 invoked by uid 500); 25 Aug 2012 04:55:49 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 41882 invoked by uid 500); 25 Aug 2012 04:55:43 -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 41834 invoked by uid 99); 25 Aug 2012 04:55:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Aug 2012 04:55:41 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of philip@loggly.com does not designate 209.85.160.44 as permitted sender) Received: from [209.85.160.44] (HELO mail-pb0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Aug 2012 04:55:34 +0000 Received: by pbbrr4 with SMTP id rr4so4470198pbb.31 for ; Fri, 24 Aug 2012 21:55:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent:x-gm-message-state; bh=W5azD+NLvPZg6fQyYq6ZcrjiSUouFrzCPqv7hYLNQ4k=; b=h5LKHyZEsAPn+Umf7NF8hzM/wtk+RBDwfaf2dcMFOfyCc+qsjkzn4iEFw6KzIUX2qy DqLilxWrTCXHBxmGhuFAde6X2nQ6aZ+Ceqmqok5lgLoqDGpSF+NIB3XiJ7T31fUbnZgP dLtTeSGA9uOdaAFHEZauu1UldYNz9ChGJ+JR9+iyej9RkCbFVSco4WprXuYPjaKAyGh2 5NLuHSBoSYcpn1/K9P/lA+OFuW8ri+0gTomMgGV62WP66WO1hCnCY1nFIpiioAishT/x kR9GwOVaEuhKY//y+10GDSOwJ6yHIkFfgfNZEEDVdAYqJdLds7OF8NuINuoUZgQV6BWO LT8g== Received: by 10.66.77.7 with SMTP id o7mr6491606paw.37.1345870512496; Fri, 24 Aug 2012 21:55:12 -0700 (PDT) Received: from loggly.com (c-76-102-244-223.hsd1.ca.comcast.net. [76.102.244.223]) by mx.google.com with ESMTPS id sj5sm9754926pbc.30.2012.08.24.21.55.11 (version=SSLv3 cipher=OTHER); Fri, 24 Aug 2012 21:55:11 -0700 (PDT) Date: Fri, 24 Aug 2012 21:55:09 -0700 From: Philip O'Toole To: user@cassandra.apache.org Subject: QUORUM writes, QUORUM reads -- and eventual consistency Message-ID: <20120825045509.GA2237@loggly.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQloulGrln32wvX/yfIPEtG6OkLqCviJ+FNE+rZYdHsxyWWyevmWTljWAp/vAQDJttrwY7+T Hello -- perhaps someone could provide me some clarification about this. From: http://www.datastax.com/docs/1.1/dml/data_consistency#data-consistency "If consistency is top priority, you can ensure that a read will always reflect the most recent write by using the following formula: (nodes_written + nodes_read) > replication_factor" But consider this. Say I have a replication factor of 3. I request a QUORUM write, and it fails because the write only reaches 1 node. Perhaps there is a temporary partition in my cluster. Now, asynchronously, a different reader performs a QUORUM read of the same cluster and just before it issues the read, the partition is resolved. The quorum read is satisfied by the two nodes that have *not* received the latest write (yet). Doesn't this mean that the read does not "reflect the most recent write"? I realise this is very unlikely to happen in practise, but I want to be sure I understand all this. Perhaps the documentation would be more correct if the statement read as "...reflect the most recent SUCCESSFUL write..."? Thanks, Philip -- Philip O'Toole Senior Developer Loggly, Inc. San Francisco, CA