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 22F0D662B for ; Fri, 8 Jul 2011 02:28:26 +0000 (UTC) Received: (qmail 22227 invoked by uid 500); 8 Jul 2011 02:28:24 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 22111 invoked by uid 500); 8 Jul 2011 02:28:23 -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 22103 invoked by uid 99); 8 Jul 2011 02:28:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 02:28:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 02:28:16 +0000 Received: by wwe5 with SMTP id 5so1306128wwe.25 for ; Thu, 07 Jul 2011 19:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=yAV/eyseMMTFqfoIU/CjcdlBe26bdk93SM9KfvgkFJM=; b=KjNZ2Fa9Y9hgxC1rW8pvY6AqDFdnktwcx9dGj2euaKVv46bK/IcTvR/jRvQ/yAZ73y SWKRoOcaf6Inf9jOR96PwKJrgYk9g3XESVoGFg6u3eSRyXH0oEqcioc48yu+EKI4Md+9 s0GFniN7ciH6OE2HGOs+5J6xHP1hS3VmIWy1c= Received: by 10.217.3.17 with SMTP id q17mr146670wes.107.1310092076192; Thu, 07 Jul 2011 19:27:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.38.85 with HTTP; Thu, 7 Jul 2011 19:27:36 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Thu, 7 Jul 2011 21:27:36 -0500 Message-ID: Subject: Re: What does a write lock ? To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Sounds to me like you're confusing atomicity with isolation. On Thu, Jul 7, 2011 at 2:54 PM, Jeffrey Kesselman wrote: > Yup, im even more confused. =A0 =A0Lets=A0talk=A0about the model, not the > implementation. > AIUI=A0updates=A0to a row are atomic across all columns in that row at on= ce, > true? > If true then the next question is, does the validation happen inside or > outside of that=A0guarantee, and is the row=A0guaranteed=A0not to=A0chang= e between > validation and update? > If that is *not* the case then it makes a whole class of=A0solutions=A0to > synchronization problems fail and puts my larger project > in=A0serious=A0question. > > On Thu, Jul 7, 2011 at 3:43 PM, Yang wrote: >> >> no , the memtable is a concurrentskiplistmap >> >> insertion can happen in parallel >> >> On Jul 7, 2011 9:24 AM, "Jeffrey Kesselman" wrote: >> > This has me more confused. >> > >> > Does this mean that ALL rows on a given node are only updated >> > sequentially, >> > never in parallel? >> > >> > On Thu, Jul 7, 2011 at 3:21 PM, Yang wrote: >> > >> >> just to add onto what jonathan said >> >> >> >> the columns are immutable . if u overwrite/ reconcile a new obj is >> >> created and shoved into the memtable >> >> >> >> there is a shared lock for all writes though which guard against an >> >> exclusive lock on memtable switching/flushing >> >> On Jul 7, 2011 7:51 AM, "A J" wrote: >> >> > Does a write lock: >> >> > 1. Just the columns in question for the specific row in question ? >> >> > 2. The full row in question ? >> >> > 3. The full CF ? >> >> > >> >> > I doubt read does any locks. >> >> > >> >> > Thanks. >> >> >> > >> > >> > >> > -- >> > It's always darkest just before you are eaten by a grue. > > > > -- > It's always darkest just before you are eaten by a grue. > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com