You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Steve Corona (JIRA)" <ji...@apache.org> on 2011/07/27 21:38:09 UTC

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

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.2
         Environment: Ubuntu 11.04
            Reporter: Steve Corona


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071995#comment-13071995 ] 

Jonathan Ellis commented on CASSANDRA-2960:
-------------------------------------------

Is it possible it defaulted to NTS?

> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Gui (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071962#comment-13071962 ] 

Jonathan Ellis commented on CASSANDRA-2960:
-------------------------------------------

do all the nodes' "nodetool ring" show everyone up?

what does the server log at debug level?  (should include which hosts it thinks are unavailable)

> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Steve Corona (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071940#comment-13071940 ] 

Steve Corona commented on CASSANDRA-2960:
-----------------------------------------

No errors are being reported in the logs and all nodes are up w/ the same schema version.

> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Steve Corona (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071967#comment-13071967 ] 

Steve Corona commented on CASSANDRA-2960:
-----------------------------------------

root@cassandra01:~# nodetool ring -h 10.60.98.26
Address         DC          Rack        Status State   Load            Owns    Token                                       
                                                                               113427455640312814857969558651062452224     
10.60.98.26     datacenter1 rack1       Up     Normal  59.21 KB        33.33%  0                                           
10.60.98.24     datacenter1 rack1       Up     Normal  67.87 KB        33.33%  56713727820156407428984779325531226112      
10.60.98.20     datacenter1 rack1       Up     Normal  67.87 KB        33.33%  113427455640312814857969558651062452224

Will turn on debug server logs now and follow up. 

> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071952#comment-13071952 ] 

Jonathan Ellis commented on CASSANDRA-2960:
-------------------------------------------

i assume you do actually have >= 3 nodes?

what is the full exception from the cli when you run it with --debug?

> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Steve Corona (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072013#comment-13072013 ] 

Steve Corona commented on CASSANDRA-2960:
-----------------------------------------

Bingo, that's it- looks like on creating a new keyspace with replication_factor it's defaulting to NTS.

[default@unknown] create keyspace SimpleTest12 with strategy_options = [{'replication_factor':'2'}];
[default@SimpleTest12] describe keyspace;
Keyspace: SimpleTest12:
  Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy


> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072075#comment-13072075 ] 

Jonathan Ellis commented on CASSANDRA-2960:
-------------------------------------------

ah, so then it's treating your options as "I want 2 replicas in datacenter 'replication_factor'" but all your nodes are in 'datacenter1'.

I thought we had logic to disallow naming a dc that to prevent this confusion but apparently not.  I'll look into that.

> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Steve Corona (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071959#comment-13071959 ] 

Steve Corona commented on CASSANDRA-2960:
-----------------------------------------

Yes, running with 3 nodes. Same exact thing happens if I set replication_factor to 2 nodes. replication_factor=1 works as expected, however.

Here is the exception:

[default@SimpleTest2] get CFTest['1'];
null
java.lang.RuntimeException
	at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:302)
	at org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:217)
	at org.apache.cassandra.cli.CliMain.main(CliMain.java:345)
Caused by: UnavailableException()
	at org.apache.cassandra.thrift.Cassandra$get_slice_result.read(Cassandra.java:7652)
	at org.apache.cassandra.thrift.Cassandra$Client.recv_get_slice(Cassandra.java:570)
	at org.apache.cassandra.thrift.Cassandra$Client.get_slice(Cassandra.java:542)
	at org.apache.cassandra.cli.CliClient.doSlice(CliClient.java:468)
	at org.apache.cassandra.cli.CliClient.executeGet(CliClient.java:603)
	at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:200)
	... 2 more

> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2960:
--------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s:     (was: 0.8.2)
                       0.8.0
             Assignee: Jonathan Ellis

> 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
>         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159280#comment-13159280 ] 

Jonathan Ellis commented on CASSANDRA-2960:
-------------------------------------------

"on creating a new keyspace ... it's defaulting to [NetworkTopologyStrategy]."
                
> 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

        

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

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073622#comment-13073622 ] 

Sylvain Lebresne commented on CASSANDRA-2960:
---------------------------------------------

+1

> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073672#comment-13073672 ] 

Hudson commented on CASSANDRA-2960:
-----------------------------------

Integrated in Cassandra-0.8 #250 (See [https://builds.apache.org/job/Cassandra-0.8/250/])
    throw exception when NTS is given replication_factoras an option
patch by jbellis; reviewed by slebresne for CASSANDRA-2960

jbellis : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1152890
Files : 
* /cassandra/branches/cassandra-0.8/CHANGES.txt
* /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/locator/NetworkTopologyStrategy.java


> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Steve Corona (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071979#comment-13071979 ] 

Steve Corona commented on CASSANDRA-2960:
-----------------------------------------

Okay- this is what I am seeing:

When I do a read:

==> system.log <==
DEBUG [pool-2-thread-11] 2011-07-27 15:26:28,641 CassandraServer.java (line 303) get_slice

==> output.log <==
DEBUG 15:26:28,646 Command/ConsistencyLevel is SliceFromReadCommand(table='SimpleTest2', key='01', column_parent='QueryPath(columnFamilyName='CFTest', superColumnName='null', columnName='null')', start='', finish='', reversed=false, count=1000000)/ONE

==> system.log <==
DEBUG [pool-2-thread-11] 2011-07-27 15:26:28,646 StorageProxy.java (line 509) Command/ConsistencyLevel is SliceFromReadCommand(table='SimpleTest2', key='01', column_parent='QueryPath(columnFamilyName='CFTest', superColumnName='null', columnName='null')', start='', finish='', reversed=false, count=1000000)/ONE

==> output.log <==
DEBUG 15:26:28,650 Blockfor/repair is 1/true; setting up requests to 

==> system.log <==
DEBUG [pool-2-thread-11] 2011-07-27 15:26:28,650 ReadCallback.java (line 84) Blockfor/repair is 1/true; setting up requests to 

==> output.log <==
DEBUG 15:26:28,650 Live nodes  do not satisfy ConsistencyLevel (1 required)

==> system.log <==
DEBUG [pool-2-thread-11] 2011-07-27 15:26:28,650 ReadCallback.java (line 211) Live nodes  do not satisfy ConsistencyLevel (1 required)

> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2960:
--------------------------------------

    Attachment: 2960.txt

patch to raise an exception instead of ignoring replication_factor option in NTS.

> 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.2
>         Environment: Ubuntu 11.04
>            Reporter: Steve Corona
>         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira