Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 5116 invoked from network); 15 Dec 2009 17:05:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Dec 2009 17:05:28 -0000 Received: (qmail 49550 invoked by uid 500); 15 Dec 2009 17:05:28 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 49517 invoked by uid 500); 15 Dec 2009 17:05:27 -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 49502 invoked by uid 99); 15 Dec 2009 17:05:27 -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 17:05:27 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 74.125.78.150 as permitted sender) Received: from [74.125.78.150] (HELO ey-out-1920.google.com) (74.125.78.150) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 17:05:25 +0000 Received: by ey-out-1920.google.com with SMTP id 3so36060eyh.8 for ; Tue, 15 Dec 2009 09:05:03 -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 :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=BIfixZJo9Z9FGqbFtaxWmMmvAzo6sAerpIrYP++PDOU=; b=SYvHyxVzYOOjV/a3g6QVA1/2/pb968iADBU43z1V3f6/XHRHMRGd8oNJp62McwjhKA FHx7mF3IoPDOIpQ7rJedzkt4pYwl1PswCvZlz/Qw4B6k4JTlOWh9FJKcCL6T79DGwWGw Fyp54co8Q/dvnBxLqrFlIfSy+J2P0dSTio7q4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=lXZFD8H/fTpswZg+h7RMPko9JPxORyCaHZlPU8CbVihV1LH3IBlI2q3x6d3su7wcAj QrRIZSaSxYgqltN8UYeWHX7o3iKFG9vsMnYDAltOXymGh6iBOoKiv8jmWHZuL3Z0QdCz mprjal1raOdF8/mgmzyuotSQ4k9s7GkBHLouI= MIME-Version: 1.0 Received: by 10.216.91.18 with SMTP id g18mr1129265wef.124.1260896703724; Tue, 15 Dec 2009 09:05:03 -0800 (PST) In-Reply-To: References: From: Jonathan Ellis Date: Tue, 15 Dec 2009 11:04:43 -0600 Message-ID: Subject: Re: Get_count method error? To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable there is similar logic already in multigetInternal, so it's not immediately clear what the bug is. can you supply a test case against the example CF definitions illustrating the problem? On Tue, Dec 15, 2009 at 4:03 AM, JKnight JKnight wrot= e: > 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 columnItr =3D c= olumns.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) co= lumnItr.next(); > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 if(column.isMarkedForDe= lete()){ > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 columns.remov= e(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 columnFamiliesMap.put(comma= nd.key, columns); > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } > > 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 th= is >> > an >> > error? >> > >> > get_count >> > >> > =A0 =A0- >> > >> > =A0 =A0i32 get_count(keyspace, key, column_parent, consistency_level) >> > >> > Counts the columns present in column_parent. >> > >> > -- >> > Best regards, >> > JKnight >> > > > > > -- > Best regards, > JKnight >