Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 27676 invoked from network); 10 Nov 2010 16:47:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 16:47:48 -0000 Received: (qmail 19353 invoked by uid 500); 10 Nov 2010 16:48:18 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 19311 invoked by uid 500); 10 Nov 2010 16:48:17 -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 19303 invoked by uid 99); 10 Nov 2010 16:48:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 16:48:17 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_QUOTING X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-ew0-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 16:48:11 +0000 Received: by ewy27 with SMTP id 27so435749ewy.31 for ; Wed, 10 Nov 2010 08:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=YVSV0icIJr+nMw8tq0+ZYMvpPPmaVs9/dwO8WCdq2LA=; b=RW6cSLMdb/u6ydoKsvfkabVFw8sU5mfOyxh84gts3XpI02S/fypfvvs9kvF+P9Lapx swBYBf00exL0gdm4i8zj0mVygIL80uvCjOHzCWn1FcNmilIaIRXkyXEsPWyUx8/ZOugf lsvUaEXTDFmNMYQB3fC7VZi8BYD0VNkJyipC8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YvAkMXvvQPR/Bg74SW6Q/NoGgb8kBKOJE6Pog3jykAoh5lRFDgkVEHfEZVujnnpKoM CFgewkbH2NsPw+KgcFXlZ+rb7ga3ZnA96rZSQf+c9b5CuEFTu48ukTDiQijIexL20fVm 5CK5eb0LgMrkufbvOqGF6YFAZdOPHBZuE6IpY= MIME-Version: 1.0 Received: by 10.216.235.41 with SMTP id t41mr1314406weq.55.1289407670623; Wed, 10 Nov 2010 08:47:50 -0800 (PST) Received: by 10.216.18.21 with HTTP; Wed, 10 Nov 2010 08:47:49 -0800 (PST) In-Reply-To: <38C664506CACB94F819CAC9235232576015784A5@MAIL.office.eventis.nl> References: <38C664506CACB94F819CAC923523257601577ECA@MAIL.office.eventis.nl> <38C664506CACB94F819CAC9235232576015784A5@MAIL.office.eventis.nl> Date: Wed, 10 Nov 2010 10:47:49 -0600 Message-ID: Subject: Re: iteration does not yield all data with consistency ONE From: Jonathan Ellis To: user Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Interesting. Does it simplify further to RF=1 and 2 nodes? On Wed, Nov 10, 2010 at 8:58 AM, Eric van Orsouw wrote: > No, all nodes were up and running while the single key was inserted. > The insert however was with consistency One. I assume however that the replicas are still written in this case. > It is btw also very reproducible. > > -----Original Message----- > From: Jonathan Ellis [mailto:jbellis@gmail.com] > Sent: woensdag 10 november 2010 15:44 > To: user > Subject: Re: iteration does not yield all data with consistency ONE > > Was the node that should have the other replica of this row down when > it was inserted? > > On Wed, Nov 10, 2010 at 6:08 AM, Eric van Orsouw > wrote: >> >> Hello, >> >> >> >> We have a cluster of 4 nodes (0.6.6) and use the random partitioner and a replication of 2. >> >> When I insert a number of rows I can always retrieve them by their explicit id (get_range_slices("","", 1). >> >> Playing with consistency levels and temporarily shutting down a Cassandra node all yields the expected result. >> >> >> >> However when I use get_range_slices("","", n) to iterate over all rows, I sometimes don't get anything (depending on the node). >> >> >> >> I then reduced the problem to inserting just a single row. >> >> Specifically, the 'iteration' only seems to succeed when I issue the request to the node that contains the first copy. >> >> I Discovered that when I iterate using a consistency level of Quorum/All the iteration always succeeds and I properly get the one row. >> >> >> >> So a solution would be to always use consistency level One/All but that has a performance penalty. >> >> >> >> Can anyone explain why iterating using get_range_slices("","",n) does not always function with consistency level One on all nodes? >> >> >> >> Thanks, >> >> Eric >> >> >> >> P.S. To rule out any discussion on whether or not to use iteration in the first place, we only plan to use it for backup and periodic cleanup cycles. > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of Riptano, the source for professional Cassandra support > http://riptano.com > -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com