Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF8928FAB for ; Mon, 5 Sep 2011 15:04:38 +0000 (UTC) Received: (qmail 51888 invoked by uid 500); 5 Sep 2011 15:04:36 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 51752 invoked by uid 500); 5 Sep 2011 15:04:35 -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 51744 invoked by uid 99); 5 Sep 2011 15:04:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 15:04:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of evgeniy.ryabitskiy@wikimart.ru) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 15:04:29 +0000 Received: by wwf5 with SMTP id 5so4280884wwf.25 for ; Mon, 05 Sep 2011 08:04:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.56.12 with SMTP id l12mr3772657wec.109.1315235045364; Mon, 05 Sep 2011 08:04:05 -0700 (PDT) Received: by 10.216.62.72 with HTTP; Mon, 5 Sep 2011 08:04:04 -0700 (PDT) Date: Mon, 5 Sep 2011 19:04:04 +0400 Message-ID: Subject: UnavailableException while storing with EACH_QUORUM and RF=3 From: Evgeniy Ryabitskiy To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016e6dd9787acd86304ac3305c1 --0016e6dd9787acd86304ac3305c1 Content-Type: text/plain; charset=ISO-8859-1 Hi, I'am trying to store record with EACH_QUORUM consistency and RF=3. While same thing with RF=2 is working. Could some one tell me why EACH_QUORUM is working with RF=2 but not with RF >=3 I have 7 nodes cluster. All nodes are UP. Here is simple CLI script: create keyspace kspace3 with placement_strategy = 'org.apache.cassandra.locator.NetworkTopologyStrategy' and strategy_options = [{datacenter1:3}]; use kspace3; create column family User with comparator = UTF8Type; consistencylevel as LOCAL_QUORUM; set User[1]['name'] = 'Smith'; consistencylevel as EACH_QUORUM; set User[2]['name'] = 'Smith'; list User; In result is only one record, EACH_QUORUM is failed: [default@unknown] create keyspace kspace3 ... with placement_strategy = 'org.apache.cassandra.locator.NetworkTopologyStrategy' ... and strategy_options = [{datacenter1:3}]; dd350870-d7ce-11e0-0000-5025568f27ff Waiting for schema agreement... ... schemas agree across the cluster [default@unknown] [default@unknown] use kspace3; Authenticated to keyspace: kspace3 [default@kspace3] create column family User with comparator = UTF8Type; dd45f860-d7ce-11e0-0000-5025568f27ff Waiting for schema agreement... ... schemas agree across the cluster [default@kspace3] [default@kspace3] consistencylevel as LOCAL_QUORUM; Consistency level is set to 'LOCAL_QUORUM'. [default@kspace3] set User[1]['name'] = 'Smith'; Value inserted. [default@kspace3] consistencylevel as EACH_QUORUM; Consistency level is set to 'EACH_QUORUM'. [default@kspace3] set User[2]['name'] = 'Smith'; null [default@kspace3] list User; Using default limit of 100 ------------------- RowKey: 01 => (column=name, value=536d697468, timestamp=1315234443834000) 1 Row Returned. While same thing with RF=2 is working: [default@kspace3] create keyspace kspace2 ... with placement_strategy = 'org.apache.cassandra.locator.NetworkTopologyStrategy' ... and strategy_options = [{datacenter1:2}]; Keyspace already exists. [default@kspace3] [default@kspace3] use kspace2; Authenticated to keyspace: kspace2 [default@kspace2] create column family User with comparator = UTF8Type; User already exists in keyspace kspace2 [default@kspace2] [default@kspace2] set User[1]['name'] = 'Smith'; Value inserted. [default@kspace2] consistencylevel as EACH_QUORUM; Consistency level is set to 'EACH_QUORUM'. [default@kspace2] set User[2]['name'] = 'Smith'; Value inserted. [default@kspace2] list User; Using default limit of 100 ------------------- RowKey: 01 => (column=name, value=536d697468, timestamp=1315234997189000) ------------------- RowKey: 02 => (column=name, value=536d697468, timestamp=1315234997198000) 2 Rows Returned. --0016e6dd9787acd86304ac3305c1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I'am trying to store record with EACH_QUORUM consistency and= RF=3D3. While same thing with RF=3D2 is working.
Could some one tell me= why EACH_QUORUM is working with RF=3D2 but not with RF >=3D3

I h= ave 7 nodes cluster. All nodes are UP.

Here is simple CLI script:

create keyspace kspace3
with place= ment_strategy =3D 'org.apache.cassandra.locator.NetworkTopologyStrategy= '
and strategy_options =3D [{datacenter1:3}];

use kspace3; create column family User with comparator =3D UTF8Type;

consistencyl= evel as LOCAL_QUORUM;
set User[1]['name'] =3D 'Smith';consistencylevel as EACH_QUORUM;
set User[2]['name'] =3D '= Smith';
list User;


In result is only one record, EACH_QUORUM is failed:<= br>
[default@unknown] create keyspace kspace3
...=A0=A0=A0 with place= ment_strategy =3D 'org.apache.cassandra.locator.NetworkTopologyStrategy= '
...=A0=A0=A0 and strategy_options =3D [{datacenter1:3}];
dd350870-d7ce-1= 1e0-0000-5025568f27ff
Waiting for schema agreement...
... schemas agr= ee across the cluster
[default@unknown]
[default@unknown] use kspace= 3;
Authenticated to keyspace: kspace3
[default@kspace3] create column famil= y User with comparator =3D UTF8Type;
dd45f860-d7ce-11e0-0000-5025568f27f= f
Waiting for schema agreement...
... schemas agree across the cluste= r
[default@kspace3]
[default@kspace3] consistencylevel as LOCAL_QUORUM;Consistency level is set to 'LOCAL_QUORUM'.
[default@kspace3] = set User[1]['name'] =3D 'Smith';
Value inserted.
[def= ault@kspace3] consistencylevel as EACH_QUORUM;
Consistency level is set to 'EACH_QUORUM'.
[default@kspace3] set= User[2]['name'] =3D 'Smith';
null
[default@kspace3] = list User;
Using default limit of 100
-------------------
RowKey: = 01
=3D> (column=3Dname, value=3D536d697468, timestamp=3D1315234443834000)
1 Row Returned.


While same thing with RF=3D2 is working:
[default@kspace3] create keyspace kspace2
...=A0=A0=A0 with placem= ent_strategy =3D 'org.apache.cassandra.locator.NetworkTopologyStrategy&= #39;
...=A0=A0=A0 and strategy_options =3D [{datacenter1:2}];
Keyspace alread= y exists.
[default@kspace3]
[default@kspace3] use kspace2;
Authen= ticated to keyspace: kspace2
[default@kspace2] create column family User= with comparator =3D UTF8Type;
User already exists in keyspace kspace2
[default@kspace2]
[default@k= space2] set User[1]['name'] =3D 'Smith';
Value inserted.=
[default@kspace2] consistencylevel as EACH_QUORUM;
Consistency level= is set to 'EACH_QUORUM'.
[default@kspace2] set User[2]['name'] =3D 'Smith';
Value= inserted.
[default@kspace2] list User;
Using default limit of 100-------------------
RowKey: 01
=3D> (column=3Dname, value=3D536d6= 97468, timestamp=3D1315234997189000)
-------------------
RowKey: 02
=3D> (column=3Dname, value=3D536d69= 7468, timestamp=3D1315234997198000)

2 Rows Returned.



=

--0016e6dd9787acd86304ac3305c1--