Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 69688 invoked from network); 13 Sep 2010 13:00:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Sep 2010 13:00:05 -0000 Received: (qmail 91062 invoked by uid 500); 13 Sep 2010 13:00:03 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 90886 invoked by uid 500); 13 Sep 2010 12:59:59 -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 90874 invoked by uid 99); 13 Sep 2010 12:59:58 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 12:59:58 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,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 petr.odut@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qy0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 12:59:37 +0000 Received: by qyk9 with SMTP id 9so5383728qyk.10 for ; Mon, 13 Sep 2010 05:59:16 -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; bh=Z/2eoVxXyhnwpUa6oi73J5A5FAPwLzow3hTXOGYOdxI=; b=qKZP654uVVE/vaax4lR36aOWvWW3GPWIS0NBhvmFRZo+HR+s9coms1B+qDfYjtLMcl oPsb+wbeCq6/pszQP/DYoL7AcAxPq8BjhUFa+CfkSjLjRkA38JB2xK2NtCDqYs7qmtFh 36OLUV09tfsDoq7sSnAOMGy5BywmAtY9eV4Oc= 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=b60IvEqFIBcnWE6EuYh83KmqUSfgo9UR/4KVqpVehqXm8FZ3Sp+VLbqVzjAmHG+bXM ltlKxYmqE5nipmF9ceHI+PSIcPiqbSKat9YJaoZJBCVqHwDEWR5fUea3zQvjS5NZbR/o OErxqDET1QVZO3KtBPZShm7IeOmpEoTb5mKJ8= MIME-Version: 1.0 Received: by 10.224.71.209 with SMTP id i17mr543038qaj.282.1284382756526; Mon, 13 Sep 2010 05:59:16 -0700 (PDT) Received: by 10.229.10.8 with HTTP; Mon, 13 Sep 2010 05:59:16 -0700 (PDT) In-Reply-To: <4C8DEE39.6040001@softwareprojects.com> References: <4C8DEE39.6040001@softwareprojects.com> Date: Mon, 13 Sep 2010 14:59:16 +0200 Message-ID: Subject: Re: buggy secondary indexes? From: Petr Odut To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=00c09f8a501ef56023049023a91e X-Virus-Checked: Checked by ClamAV on apache.org --00c09f8a501ef56023049023a91e Content-Type: text/plain; charset=ISO-8859-1 OK, I'll try it, but this: "recreate user with different email, then finding user by original email returns again that updated user" --> remove user "user" && insert new user: "user":{"email":"other@email.com "} doesn't crash on thrift, it seems to be cassandra issue. Petr On Mon, Sep 13, 2010 at 11:26 AM, Mike Peters < cassandra@softwareprojects.com> wrote: > Sounds like you may need to patch your php thrift > > See > http://www.softwareprojects.com/resources/programming/t-php-thrift-library-for-cassandra-1982.html > > > On 9/13/2010 5:09 AM, Petr Odut wrote: > > Hi, > let's have CF User with indexed column email. > > Now i insert new user: "user":{"email":"some@email.com"} > > finding user by email address by get_indexed_slices ... everything works > all right > updating email value (via batch_mutate) ends with TTransportException (TSocket: > timed out reading 4 bytes from localhost:9160) > remove user, then try to find user by email again - it returns an empty > user "user":{} > recreate user with different email, then finding user by original email is > successful > > Hope that last 3 points are buggy behaviour, > using cassandra 0.7beta1 + php thrift > > Petr > > > -- Petr Odut [petr.odut@gmail.com] --00c09f8a501ef56023049023a91e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable OK, I'll try it, but this:

"recreate user with different email, then = finding user by original email returns again that updated user"=
--> remove use= r "user" &&=A0insert new user: "user":{"email":"other@email.com"}

doesn't crash o= n thrift, it seems to be cassandra issue.

=
Petr


On Mon, Sep 13,= 2010 at 11:26 AM, Mike Peters <cassandra@softwareprojects.com> w= rote:
=20 =20 =20
Sounds like you may need to patch your php thrift

See http://www.so= ftwareprojects.com/resources/programming/t-php-thrift-library-for-cassandra= -1982.html


On 9/13/2010 5:09 AM, Petr Odut wrote:
Hi,
let's have CF User with indexed column email.

Now i insert new user: "user":{"email":"= ;some@email.com&quo= t;}

finding user by email address by get_indexed_slices ... everything works all right
updating email value (via batch_mutate) ends with=A0TTransportExcepti= on (TSocket: timed out reading 4 bytes from localhost:9160)
remove user, then try to find user by email again - it returns an empty user "user":{}
recreate user with different email, then finding user by original email is successful
=20 =20

Hope that last 3 points are buggy behaviour,
using cassandra 0.7beta1 + php thrift

Petr




--
Petr Odut [petr.odut@gmail.com]
--00c09f8a501ef56023049023a91e--