Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 21362 invoked from network); 15 Dec 2009 10:03:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Dec 2009 10:03:45 -0000 Received: (qmail 92901 invoked by uid 500); 15 Dec 2009 10:03:45 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 92876 invoked by uid 500); 15 Dec 2009 10:03:44 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 92867 invoked by uid 99); 15 Dec 2009 10:03:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 10:03:44 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of beuknight@gmail.com designates 209.85.222.174 as permitted sender) Received: from [209.85.222.174] (HELO mail-pz0-f174.google.com) (209.85.222.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 10:03:42 +0000 Received: by pzk4 with SMTP id 4so2746549pzk.32 for ; Tue, 15 Dec 2009 02:03:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=td/mbcEpnSspwaTdOvY0zssvJI9i98nGe2FSiVw7Msc=; b=AwZK9FP0uG9DUUa/Pdxy42DY7SrICPo567s0/ork0BFlO9wN5I+Rop4JQoHWLEDkY8 Hgw2HoxuHHiUBa1BrJ0XIu0mjNGKP26onIc9OQHnd1+c/ISigY1i+EuizlNy7+gzlHzn r03ohXNA+uKeB5fdKeMJDAAn3pSSQqwJdvf0o= 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=AWvDi2NeEY8lN85KlCdBTDzVzvtdTNsFVAPu8SLeqG31CgZUONk+76y8vRUr2UA13O FmAcOLGhGiuGd6aECnYVz5I5TCV7cCeR7b0jtRF6QKyccErP2+pSGflpfsfksc141PGu srn8TGroRixTPBLZ/+yVOCt8hhg570jk9YGyE= MIME-Version: 1.0 Received: by 10.142.55.14 with SMTP id d14mr1628584wfa.45.1260871401876; Tue, 15 Dec 2009 02:03:21 -0800 (PST) In-Reply-To: References: Date: Tue, 15 Dec 2009 05:03:21 -0500 Message-ID: Subject: Re: Get_count method error? From: JKnight JKnight To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=001636b2bc99042d62047ac180e4 --001636b2bc99042d62047ac180e4 Content-Type: text/plain; charset=ISO-8859-1 Dear Mr Jonathan, I have changed a litle in multigetColumns method in CassandraServer.java file to solve this error. if (columns != null && columns.size() != 0) { Iterator columnItr = columns.iterator(); IColumn column; while (columnItr.hasNext()) { column = (IColumn) columnItr.next(); if(column.isMarkedForDelete()){ columns.remove(column); } } columnFamiliesMap.put(command.key, columns); } On Mon, Dec 14, 2009 at 8:33 AM, Jonathan Ellis wrote: > yes, that would be a bug > > On 12/14/09, JKnight JKnight wrote: > > Dear all, I found method get_count still count "deleted" column. Is this > an > > error? > > > > get_count > > > > - > > > > i32 get_count(keyspace, key, column_parent, consistency_level) > > > > Counts the columns present in column_parent. > > > > -- > > Best regards, > > JKnight > > > -- Best regards, JKnight --001636b2bc99042d62047ac180e4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear Mr Jonathan,

I have changed a litle in multigetColumns method = in CassandraServer.java file to solve this error.

=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 if (columns !=3D null && columns.size() !=3D 0)
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 {
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0= =A0 Iterator<IColumn> columnItr =3D columns.iterator();
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 IColumn column;
=A0=A0=A0 =A0=A0= =A0 =A0=A0=A0 =A0=A0=A0 while (columnItr.hasNext()) {
=A0=A0=A0 =A0=A0= =A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 column =3D (IColumn) columnItr.next();=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 if(column.isMarkedForDel= ete()){
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 colu= mns.remove(column);
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 }
=A0=A0=A0 =A0=A0=A0 = =A0=A0=A0 =A0=A0=A0 }
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 colu= mnFamiliesMap.put(command.key, columns);
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 }

On Mon, Dec 14, 2009 at 8:33 AM, Jo= nathan Ellis <jbe= llis@gmail.com> wrote:
yes, that would b= e a bug

On 12/14/09, JKnight JKnight <beu= knight@gmail.com> wrote:
> Dear all, I found method get_count still count "deleted" col= umn. Is this an
> error?
>
> get_count
>
> =A0 =A0-
>
> =A0 =A0i32 get_count(keyspace, key, column_parent, consistency_level)<= br> >
> Counts the columns present in column_parent.
>
> --
> Best regards,
> JKnight
>



--
Best regard= s,
JKnight
--001636b2bc99042d62047ac180e4--