Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 1D630C735 for ; Fri, 19 Jul 2013 16:15:44 +0000 (UTC) Received: (qmail 6662 invoked by uid 500); 19 Jul 2013 16:15:43 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 6634 invoked by uid 500); 19 Jul 2013 16:15:41 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 6622 invoked by uid 99); 19 Jul 2013 16:15:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 16:15:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of briantarbox@gmail.com designates 209.85.215.46 as permitted sender) Received: from [209.85.215.46] (HELO mail-la0-f46.google.com) (209.85.215.46) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 16:15:34 +0000 Received: by mail-la0-f46.google.com with SMTP id hi8so798496lab.19 for ; Fri, 19 Jul 2013 09:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6ymcEnq2N9qTkU4WcoLLyLhHnl0PXN2LpIWxaaJwIqU=; b=ypyagdsSEG7K1Ec6gLKbo2tyZ7gUNY3vrSGgekvhlSEo6vIqcHS3LASU0n55u2tgLK GWuvopkxUKOBFr/3WNXhvorXq3xldqxjPt2jlqCVaviyt8wrtdaTmse1bmcFBcsnSJau TmmIRHNY5jexwgHlICMfW26CJT71/5xXOVes1L7/dg1rqvbX4AW/wBhQQyJYjXJJRgRi 2f5TG9fJR/IAZRUYyP81soFmLbTMc90K5hK6jxvtyvp9nRWON3X+P3Fey7RNiNdzuULa jfESt2ibHOiv5CBUeP717Kx/+ZYVFlYxjnMrKsYxe5AzFwwiweyMZltnCEiEKXtIW/qL prBw== MIME-Version: 1.0 X-Received: by 10.152.28.199 with SMTP id d7mr7734316lah.67.1374250513377; Fri, 19 Jul 2013 09:15:13 -0700 (PDT) Received: by 10.112.128.131 with HTTP; Fri, 19 Jul 2013 09:15:13 -0700 (PDT) In-Reply-To: References: <5883C72959AF6546B303F6958D47FF040590389A@NDA-HCLT-MBS03.hclt.corp.hcl.in> <5883C72959AF6546B303F6958D47FF04059039B1@NDA-HCLT-MBS03.hclt.corp.hcl.in> <9D3BF7B9-6399-4EE3-AC49-77D4EA5145E4@groovie.org> Date: Fri, 19 Jul 2013 12:15:13 -0400 Message-ID: Subject: Re: Use zookeeper with Cassandra From: Brian Tarbox To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=089e0160b432aeb73104e1dfa1e3 X-Virus-Checked: Checked by ClamAV on apache.org --089e0160b432aeb73104e1dfa1e3 Content-Type: text/plain; charset=ISO-8859-1 Many thanks for the clear and concise explanation! I'll check out the slides. Brian On Fri, Jul 19, 2013 at 11:29 AM, Ben Bangert wrote: > On Jul 19, 2013, at 5:59 AM, Brian Tarbox wrote: > > > Can you say more about this? We use Zookeeper to manage a large set of > > "work units" which are selected, locked, processed by EC2 worker > > computers...which then do work on and with Cassandra data. > > Sure, there's two parts to it. First, holding a lock external to Cassandra > itself has its own issue. This is because while you might be able to > guarantee that only one person is doing something with Cassandra, short of > using CL.ALL, there's no way to fully ensure that two people don't stomp on > updates. If you use CL.QUORUM, its still possible that a node could be > holding hints, client releases ZK lock, another client gets the lock, does > a read and if timed poorly will not see the prior change. > > Cassandra's CAS operation properly deals with this since its handled > inside Cassandra itself. > > Jonathan Ellis went over why client locks don't work for Cassandra at the > Cassandra Summit, slides from his talk here: > http://www.slideshare.net/jbellis/cassandra-summit-2013-keynote > > He goes over CAS on slide 52-60. > > Cheers, > Ben -- http://about.me/BrianTarbox --089e0160b432aeb73104e1dfa1e3--