Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 17521 invoked from network); 6 Apr 2010 20:15:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Apr 2010 20:15:38 -0000 Received: (qmail 25997 invoked by uid 500); 6 Apr 2010 20:15:37 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 25980 invoked by uid 500); 6 Apr 2010 20:15:37 -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 25972 invoked by uid 99); 6 Apr 2010 20:15:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 20:15:37 +0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcdcu-cassandra-user-1@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 20:15:30 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NzFAx-0002kZ-Ek for user@cassandra.apache.org; Tue, 06 Apr 2010 22:15:07 +0200 Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Apr 2010 22:15:07 +0200 Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Apr 2010 22:15:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@cassandra.apache.org From: Ted Zlatanov Subject: Re: Net::Cassandra::Easy deletion failed Date: Tue, 06 Apr 2010 15:14:58 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Lines: 40 Message-ID: <878w905oe5.fsf@lifelogs.com> References: <4BBB7847.50608@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:xP7HIyXcr0HYUzNzixSKwbJdULA= X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 06 Apr 2010 11:07:03 -0700 Mike Gallamore wrote: MG> Seems to be internal to java/cassandra itself. MG> I have some tests and I want to make sure that I have a "clean slate" MG> each time I run the test. Clean as far as my code cares is that MG> "value" is not defined. I'm running "bin/cassandra -f" with the MG> default install/options. So at the beginning of my test I run: Mike, you can submit bugs and questions directly to me, here, or through http://rt.cpan.org (the CPAN bug tracker). It's a good idea to test an operation from the CLI that comes with Cassandra to make sure the problem is not with the Net::Cassandra::Easy module. Also, if you set $Net::Cassandra::Easy::DEBUG to 1, you'll see the actual Thrift objects that get constructed. In this case (N::C::Easy 0.08) I was constructing a super_column parameter which was wrong. MG> $rc = $c->mutate([$key], family => 'Standard1', deletions => { byname => ['value']}); ... MG> Anyone have any ideas what I'm doing wrong? The value field is just a MG> json encoded digit so something like ("30") not a real supercolumn but MG> the Net::Cassandra::Easy docs didn't have any examples of removing a MG> non supercolumns data. Really what I'd like to do is delete the whole MG> row, but again I didn't find any examples of how to do this. It's a bug in N::C::Easy. I fixed it in 0.09 so it will work properly with: $rc = $c->mutate([$key], family => 'Standard1', deletions => { standard => 1, byname => ['column1', 'column2']}); AFAIK I can't specify "delete all columns in a non-super CF" using Deletions so "byname" is required (I end up filling the column_names field in the predicate). OTOH I can just delete a SuperColumn so the above is possible in a super CF. The docs and tests were updated as well. Let me know if you have problems; it worked for me. In the next release I'll update cassidy.pl to work with non-super CFs as well. Sorry for the inconvenience. Thanks Ted