You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Gui (Commented) (JIRA)" <ji...@apache.org> on 2011/11/29 09:51:40 UTC

[jira] [Commented] (CASSANDRA-2960) replication_factor > 1 always causes cassandra to return null

    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159159#comment-13159159 ] 

Gui commented on CASSANDRA-2960:
--------------------------------

we are running 0.84, looks still have this problem.

[default@unknown] create keyspace Gui3;
9deaddb0-1a4b-11e1-0000-21e4216050ff
Waiting for schema agreement...
... schemas agree across the cluster
[default@unknown] use Gui3;                      
Authenticated to keyspace: Gui3
[default@Gui3] create column family gui_test3;
a997c1f0-1a4b-11e1-0000-21e4216050ff
Waiting for schema agreement...
... schemas agree across the cluster
[default@Gui3] set gui_test3['jsmith']['first'] = 'John';
Null

if we use below script
 create keyspace Gui2 with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:3}];
it works fine.

[guzhang@slcdbx5001-01 bin]$ /opt/cassandra/bin/nodetool -host localhost version
ReleaseVersion: 0.8.4

                
> replication_factor > 1 always causes cassandra to return null
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-2960
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2960
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.8.0
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.8.3
>
>         Attachments: 2960.txt
>
>
> On a brand new cluster:
> 	
> [default@SimpleTest] create keyspace SimpleTest2 with strategy_options = [{replication_factor:3}];              
> 16babc60-b886-11e0-0000-c9ff69cb2dfb
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@SimpleTest] use SimpleTest2;
> Authenticated to keyspace: SimpleTest2
> [default@SimpleTest2] create column family CFTest with comparator=UTF8Type and default_validation_class=UTF8Type;
> 1f108660-b886-11e0-0000-c9ff69cb2dfb
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@SimpleTest2] set CFTest['1']['text'] = 'test';
> null
> [default@SimpleTest2] get CFTest['1'];
> null
> [default@SimpleTest2] list CFTest;
> Using default limit of 100
> null
> [default@SimpleTest2] describe cluster;
> Cluster Information:
>    Snitch: org.apache.cassandra.locator.SimpleSnitch
>    Partitioner: org.apache.cassandra.dht.RandomPartitioner
>    Schema versions: 
> 	1f108660-b886-11e0-0000-c9ff69cb2dfb: [10.60.98.20, 10.60.98.24, 10.60.98.26]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira