Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 79290 invoked from network); 8 Apr 2010 15:52:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Apr 2010 15:52:59 -0000 Received: (qmail 84097 invoked by uid 500); 8 Apr 2010 15:52:58 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 84071 invoked by uid 500); 8 Apr 2010 15:52:58 -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 84059 invoked by uid 99); 8 Apr 2010 15:52:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 15:52:58 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mike.e.gallamore@googlemail.com designates 209.85.222.191 as permitted sender) Received: from [209.85.222.191] (HELO mail-pz0-f191.google.com) (209.85.222.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 15:52:50 +0000 Received: by pzk29 with SMTP id 29so2018646pzk.29 for ; Thu, 08 Apr 2010 08:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=fb53vpdAFbAiy3jlU4gN+a2AqWtkgLmTUlltwOlVgfc=; b=rYkylIOYS4Ol6XbHGf+k+C/8QeaRldX/rOEr3MBQFaRNEPoYXJtSF2k+Fh+CLtbAOZ 3WtCQTllpcbI6CVVlbfDGcqyvgPI2JypGIO43D6mhM+5OLdOgHtgyuoJe74vzs+1Pwdt S+ChVfTHdv1ZToDdquCfsLl0FbeAdXZX8UbDs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=hxMXt52dOFz/mEJ6J9f7yOSkEzs3D2eMf9dTj+e6BwIvvPtWekalp3oarTJ4DrFM0l 5Gx5qmDCVG9Qn8oc7Plu207UnrmAV2TSqH5NPqT4krMRu4Yo8VLBA6sxcWGFHB8IFoVU CXAq/KjtVYWkWlwMe/6ttq/ZGUk4jKlEYHlSE= Received: by 10.141.88.12 with SMTP id q12mr443392rvl.188.1270741571484; Thu, 08 Apr 2010 08:46:11 -0700 (PDT) Received: from [192.168.1.3] ([76.77.79.26]) by mx.google.com with ESMTPS id 21sm145692pzk.0.2010.04.08.08.46.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 08 Apr 2010 08:46:10 -0700 (PDT) Message-ID: <4BBDFA06.1080005@gmail.com> Date: Thu, 08 Apr 2010 08:45:10 -0700 From: Mike Gallamore User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10pre) Gecko/20100328 Shredder/3.0.5pre MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: writes to Cassandra failing occasionally References: <4BBCE8CE.9000805@gmail.com> <87tyrmqhwz.wl%phil@shellarchive.co.uk> In-Reply-To: <87tyrmqhwz.wl%phil@shellarchive.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 04/08/2010 04:53 AM, Philip Jackson wrote: > At Wed, 07 Apr 2010 13:19:26 -0700, > Mike Gallamore wrote: > >> I have writes to cassandra that are failing, or at least a read shortly >> after a write is still getting an old value. I realize Cassandra is >> "eventually consistent" but this system is a single CPU single node with >> consistency level set to 1, so this seems odd to me. >> > I'm having this problem too (see my post the other day). I use N::C > but generate timestamps in the same way as N::C::E, I've tested that > each is smaller than the next so I'm wondering if I'm barking up the > wrong tree. > > If you figure out what's going on please do post back here, I'll do > the same. > > Cheers, > Phil > I modified N::C::E to output the timestamp each time the timestamp subroutine is called. I've confirmed that the timestamp is increasing (never getting two updates with the same timestamp) but I'm still loosing data. This is painful because part of the data structure I'm working with is a revolving one week bucket of daily scores. When the system forgets that the day has changed it thinks it is still yesterday and "nukes" the data in that bucket (which it just set) thinking that it is week old data. The desired behavior of course is that it realize that it is a new day (this is stored in the data structure itself and isn't modifible as it depends on when the data was first created for a particular row which "bucket" the system will be working with any given day) and nuke the new day's old data before updating it with a new score.