Return-Path: Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: (qmail 9456 invoked from network); 3 Nov 2010 21:59:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 21:59:49 -0000 Received: (qmail 68655 invoked by uid 500); 3 Nov 2010 22:00:20 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 68418 invoked by uid 500); 3 Nov 2010 22:00:19 -0000 Mailing-List: contact dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list dev@cassandra.apache.org Received: (qmail 68409 invoked by uid 99); 3 Nov 2010 22:00:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 22:00:18 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ey0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 22:00:13 +0000 Received: by eyd10 with SMTP id 10so707425eyd.31 for ; Wed, 03 Nov 2010 14:59:51 -0700 (PDT) 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 :content-transfer-encoding; bh=SxKm2JISKtAgrsXrd7swclbYYpaQWiEDjruSAM13vXQ=; b=TPJYJpVmpeqiitydTsDwbl6JHhvFJ1Lo2t3JEfaEzcDQj/pLF8512iUHAo+HqUNi8k 4OyJC4CkZSlebrM+E+FAq0uDuop4cnZWL+N5/pE+lxpCA6AtH5GZdjXnlCj6VK1wIOnZ ImrYbm3Az75zZOalENbIQeiMkIQN1iC1tziQI= 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:content-transfer-encoding; b=KN1/wtPvqqejYFYECE2rFPntmUeZb0hZC7Me796w+Bh9N2rxFpjdSI0wjZnC1fEdDI m3vPQBUV3LTuos042amO2MlS8dPlUSR7ziJdwUPfCmUJyg8XVRiuOpY8vDF9z3LBvUfq 0QzDXF12T6newInl+b8bmzSgRTbg5ULK4K7Yk= MIME-Version: 1.0 Received: by 10.213.20.145 with SMTP id f17mr8576ebb.75.1288821591567; Wed, 03 Nov 2010 14:59:51 -0700 (PDT) Received: by 10.14.53.7 with HTTP; Wed, 3 Nov 2010 14:59:51 -0700 (PDT) In-Reply-To: References: Date: Wed, 3 Nov 2010 17:59:51 -0400 Message-ID: Subject: Re: Consistency level All for read operation From: Jonathan Ellis To: dev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 0.6.6 is the right version to use. On Wed, Nov 3, 2010 at 5:43 PM, Maifi Khan wrote: > Aha. We have 0.6.2 > So 0.6.3 is the right version to use? > > thanks > Maifi > > On Wed, Nov 3, 2010 at 4:34 PM, Jonathan Ellis wrote: >> You are looking at obsolete code. >> >> CHANGES.txt >> 0.6.3 >> =A0* don't reject reads at CL.ALL (CASSANDRA-1152) >> >> >> On Wed, Nov 3, 2010 at 5:27 PM, Maifi Khan wrote: >>> Hi >>> Inside org.apache.cassandra.thrift, =A0in CassandraServer.java, it seem= s >>> that read operation for Consistency level =A0"all" is not supported. >>> >>> Is this the case? >>> Does this mean there is no way to read from all the copy? =A0if there >>> are 3 copies of data, I would like to read all of them. >>> >>> I gave the code snippet below. >>> >>> >>> >>> =A0protected Map >>> readColumnFamily(List commands, ConsistencyLevel >>> consistency_level) >>> =A0 =A0throws InvalidRequestException, UnavailableException, TimedOutEx= ception >>> =A0 =A0{ >>> =A0 =A0 =A0 =A0// TODO - Support multiple column families per row, righ= t now >>> row only contains 1 column family >>> =A0 =A0 =A0 =A0Map columnFamilyKeyMap =3D new >>> HashMap(); >>> >>> =A0 =A0 =A0 =A0if (consistency_level =3D=3D ConsistencyLevel.ZERO) >>> =A0 =A0 =A0 =A0{ >>> =A0 =A0 =A0 =A0 =A0 =A0throw new InvalidRequestException("Consistency l= evel zero >>> may not be applied to read operations"); >>> =A0 =A0 =A0 =A0} >>> =A0 =A0 =A0 =A0if (consistency_level =3D=3D ConsistencyLevel.ALL) >>> =A0 =A0 =A0 =A0{ >>> =A0 =A0 =A0 =A0 =A0 =A0throw new InvalidRequestException("Consistency l= evel all >>> is not yet supported on read operations"); >>> =A0 =A0 =A0 =A0} >>> =A0 =A0 =A0 =A0if (consistency_level =3D=3D ConsistencyLevel.ANY) >>> =A0 =A0 =A0 =A0{ >>> =A0 =A0 =A0 =A0 =A0 =A0throw new InvalidRequestException("Consistency l= evel any >>> may not be applied to read operations"); >>> =A0 =A0 =A0 =A0} >>> >>> >>> >>> thanks >>> Maifi >>> >> >> >> >> -- >> Jonathan Ellis >> Project Chair, Apache Cassandra >> co-founder of Riptano, the source for professional Cassandra support >> http://riptano.com >> > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com