Return-Path: Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: (qmail 2763 invoked from network); 3 Nov 2010 21:46:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 21:46:28 -0000 Received: (qmail 47107 invoked by uid 500); 3 Nov 2010 21:46:59 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 47046 invoked by uid 500); 3 Nov 2010 21:46:57 -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 46973 invoked by uid 99); 3 Nov 2010 21:46:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 21:46:56 +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 maifi.khan@gmail.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bw0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 21:44:19 +0000 Received: by bwz12 with SMTP id 12so1039223bwz.31 for ; Wed, 03 Nov 2010 14:43:59 -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=CD9UsBCp8RKmDXup5x/LHqRe7Mp6+jICnlkwn3wvpLc=; b=im/0IJSFPkIDN1k9AfeSX2HeABHG32/B5u6zPKB84ZfZe9k3VxKDgOALe2Hv1Nsu8n zYtg0dckBNu2I7NfV4MVYDOv9fpH+0m6JkSW/JIrBe2V5I50FfG3YKfPqzbYKeAuRnlg 85IMUGkPQqXyYA9sxqNhzifL2t47fdrA9Qjb8= 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=afaX832L0c/IlLDy3CxJu7P//WKikcLz6KsLsCtgmLcnuy1b8U4r77FLAqs0ABC69y 7Ut+sMM6MVfbZqwRp0H9yMg+bO77EXgjpbE61v9N4HDF1Ge1PQDXEV4TVwbl88bE/q4n XIP0A0AO9drlDfHQYeIBdkxQbsohKRZ3oY3Hw= MIME-Version: 1.0 Received: by 10.204.72.135 with SMTP id m7mr594227bkj.89.1288820638193; Wed, 03 Nov 2010 14:43:58 -0700 (PDT) Received: by 10.204.54.205 with HTTP; Wed, 3 Nov 2010 14:43:58 -0700 (PDT) In-Reply-To: References: Date: Wed, 3 Nov 2010 16:43:58 -0500 Message-ID: Subject: Re: Consistency level All for read operation From: Maifi Khan To: dev@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 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 seems >> 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, TimedOutExc= eption >> =A0 =A0{ >> =A0 =A0 =A0 =A0// TODO - Support multiple column families per row, right= 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 le= vel 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 le= vel 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 le= vel 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 >