incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeniy Ryabitskiy <evgeniy.ryabits...@wikimart.ru>
Subject UnavailableException while storing with EACH_QUORUM and RF=3
Date Mon, 05 Sep 2011 15:04:04 GMT
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.

Mime
View raw message