Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 28970 invoked from network); 4 May 2010 07:32:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 May 2010 07:32:24 -0000 Received: (qmail 60574 invoked by uid 500); 4 May 2010 07:32:23 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 60488 invoked by uid 500); 4 May 2010 07:32:23 -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 60479 invoked by uid 99); 4 May 2010 07:32:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 07:32:22 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 07:32:16 +0000 Received: by fg-out-1718.google.com with SMTP id e21so1338146fga.7 for ; Tue, 04 May 2010 00:31:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.188.65 with SMTP id o1mr427551hbh.83.1272958314757; Tue, 04 May 2010 00:31:54 -0700 (PDT) Received: by 10.239.192.81 with HTTP; Tue, 4 May 2010 00:31:54 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 May 2010 09:31:54 +0200 Message-ID: Subject: Re: Cassandra and Request routing From: Olivier Mallassi To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001485f5cda22a40910485bfb4b9 --001485f5cda22a40910485bfb4b9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable :) I think this is simpler and I am just stupid.... I retried with clean data and commit log directories and everything works well. I should have missed something (maybe when I upgraded from 0.5.1 to 0.6) bu= t anyway, I am just in test. On Tue, May 4, 2010 at 8:47 AM, Jonathan Shook wrote: > I think you may found the "eventually" in eventually consistent. With a > replication factor of 1, you are allowing the client thread to continue t= o > the read on node#2 before it is replicated to node 2. Try setting your > replication factor higher for different results. > > Jonathan > > > On Tue, May 4, 2010 at 12:14 AM, Olivier Mallassi wro= te: > >> Hi all, >> >> I can't figure out how to deal with request routing... >> >> In fact I have two nodes in the "Test Cluster" and I wrote the client as >> specified here http://wiki.apache.org/cassandra/ThriftExamples#Java. The >> Keyspace is the default one (KeySpace1, replicatorFactor 1..) >> The Seeds are well configured (using the IP) : ie. the cassandra log >> indicates that the servers are up. >> >> Everything goes >> well if I write and read the data on node#1 for instance. Yet, if I writ= e >> the data on node#1 and then read the same data (using the key) on node#2= , >> no data is found. >> >> Did I miss something? >> As far as I understood, I should be able to reach any nodes from the >> cluster and the node should be able to "redirect" the request to the "go= od" >> node >> >> Thank you for your answers and your time. >> >> Best Regards. >> >> Olivier. >> >> -- >> ............................................................ >> Olivier Mallassi >> OCTO Technology >> ............................................................ >> 50, Avenue des Champs-Elys=E9es >> 75008 Paris >> >> Mobile: (33) 6 28 70 26 61 >> T=E9l: (33) 1 58 56 10 00 >> Fax: (33) 1 58 56 10 01 >> >> http://www.octo.com >> Octo Talks! http://blog.octo.com >> >> >> > --=20 ............................................................ Olivier Mallassi OCTO Technology ............................................................ 50, Avenue des Champs-Elys=E9es 75008 Paris Mobile: (33) 6 28 70 26 61 T=E9l: (33) 1 58 56 10 00 Fax: (33) 1 58 56 10 01 http://www.octo.com Octo Talks! http://blog.octo.com --001485f5cda22a40910485bfb4b9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable :)=A0I think thi= s is simpler and I am just stupid....
I retried with clean da= ta and commit log directories and everything works well.=A0

I should have missed something (maybe when I upgraded fr= om 0.5.1 to 0.6) but anyway, I am just in test.=A0


On Tue, May 4, 2= 010 at 8:47 AM, Jonathan Shook <jshook@gmail.com> wrote:
I think you may found the "eventually&= quot; in eventually consistent. With a replication factor of 1, you are all= owing the client thread to continue to the read on node#2 before it is repl= icated to node 2. Try setting your replication factor higher for different = results.

Jonathan


On Tue, May 4, 2010 at 12:14 AM, Olivier Mallassi <omallassi= @octo.com> wrote:
Hi all,=A0

I c= an't figure out how to deal with request routing...
=

In = fact I have two nodes in the "Test Cluster" and I wrote the clien= t as specified here=A0http://wiki.ap= ache.org/cassandra/ThriftExamples#Java. The Keyspace is the default one= (KeySpace1, replicatorFactor 1..)
The Seeds a= re well configured (using the IP) : ie. the cassandra log indicates that th= e servers are up.=A0

Everything goes well if= I write and read the data on node#1 for instance. Yet, if I write the data= on node#1 and then read the same data (using the key) on node#2, =A0no dat= a is found.=A0

=
Did I miss so= mething?=A0
As= far as I understood, I should be able to reach any nodes from the cluster = and the node should be able to "redirect" the request to the &quo= t;good" node

Thank you for your answers and your= time.=A0

=
Best Regards.=A0

<= font face=3D"arial, helvetica, sans-serif">Olivier.=A0
<= /font>

--
............................................................
Oliv= ier Mallassi
OCTO Technology
........................................= ....................
50, Avenue des Champs-Elys=E9es
75008 Paris

Mobile: (33) 6 28 70 26 61
T=E9l: (33) 1 58 56 10 00
Fax: (33) 1 = 58 56 10 01

http:/= /www.octo.com
Octo Talks! http://blog.octo.com






--
...........= .................................................
Olivier Mallassi
OC= TO Technology
..........................................................= ..
50, Avenue des Champs-Elys=E9es
75008 Paris

Mobile: (33) 6 28 70 = 26 61
T=E9l: (33) 1 58 56 10 00
Fax: (33) 1 58 56 10 01

http://www.octo.com
Octo Talks! http://blog.octo.com


--001485f5cda22a40910485bfb4b9--