[jira] [Commented] (CASSANDRA-3209) CLI does not display error when it is not possible to create a keyspace when schemas in cluster do not agree.

2011-09-14 Thread Pavel Yaskevich (JIRA)

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

Pavel Yaskevich commented on CASSANDRA-3209:


What does your system.log output on that matter?

> CLI does not display error when it is not possible to create a keyspace when 
> schemas in cluster do not agree.
> -
>
> Key: CASSANDRA-3209
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3209
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 0.8.1
> Environment: Latest brisk beta 2 deb on Ubuntu 10.10 server 64 bit.  
> (Using chef recipe to install)
>Reporter: Todd Nine
>Assignee: Pavel Yaskevich
>  Labels: cli
>
> Cluster:
> 3 nodes.  2 online, 1 offline
> describe cluster; displays 2 schema versions.  2 nodes are on 1 version, a 
> single node is on a different version.
> Issue this command in the CLI.
> create keyspace TestKeyspace with placement_strategy = 
> 'org.apache.cassandra.locator.NetworkTopologyStrategy' and 
> strategy_options=[{Brisk:3, Cassandra:0}];
> What should happen.
> An error should be displayed when the keyspace cannot be created.
> What actually happens.
> The user is presented with "null" as the output.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3209) CLI does not display error when it is not possible to create a keyspace when schemas in cluster do not agree.

2011-09-14 Thread Todd Nine (JIRA)

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

Todd Nine commented on CASSANDRA-3209:
--

Unfortunately this was on a testing cluster which has since been shut down, so 
I don't have the system.log output.

> CLI does not display error when it is not possible to create a keyspace when 
> schemas in cluster do not agree.
> -
>
> Key: CASSANDRA-3209
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3209
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 0.8.1
> Environment: Latest brisk beta 2 deb on Ubuntu 10.10 server 64 bit.  
> (Using chef recipe to install)
>Reporter: Todd Nine
>Assignee: Pavel Yaskevich
>  Labels: cli
>
> Cluster:
> 3 nodes.  2 online, 1 offline
> describe cluster; displays 2 schema versions.  2 nodes are on 1 version, a 
> single node is on a different version.
> Issue this command in the CLI.
> create keyspace TestKeyspace with placement_strategy = 
> 'org.apache.cassandra.locator.NetworkTopologyStrategy' and 
> strategy_options=[{Brisk:3, Cassandra:0}];
> What should happen.
> An error should be displayed when the keyspace cannot be created.
> What actually happens.
> The user is presented with "null" as the output.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3209) CLI does not display error when it is not possible to create a keyspace when schemas in cluster do not agree.

2011-09-15 Thread Pavel Yaskevich (JIRA)

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

Pavel Yaskevich commented on CASSANDRA-3209:


Unfortunately I can't reproduce that using current "cassandra-0.8" branch and 
ccm (github.com/pcmanus/ccm) tool. Created a 3 node cluster and stopped one 
node, tried to run your command `create keyspace TestKeyspace with 
placement_strategy = 'org.apache.cassandra.locator.NetworkTopologyStrategy' and 
strategy_options=[{Brisk:3, Cassandra:0}];` on one of the alive nodes and got 
the following output:

{noformat}
[default@unknown] describe cluster; 

  
Cluster Information:
   Snitch: org.apache.cassandra.locator.SimpleSnitch
   Partitioner: org.apache.cassandra.dht.RandomPartitioner
   Schema versions: 
UNREACHABLE: [127.0.0.2]
c2899390-df87-11e0--fe8ebeead9d9: [127.0.0.1, 127.0.0.3]
[default@unknown] create keyspace TestKeyspace with placement_strategy = 
'org.apache.cassandra.locator.NetworkTopologyStrategy' and 
strategy_options=[{Brisk:3, Cassandra:0}]; 
cc89d940-df87-11e0--fe8ebeead9d9
Waiting for schema agreement...
Warning: unreachable nodes 127.0.0.2... schemas agree across the cluster
{noformat}

and when I started node2 it fetched schema:

{noformat}
default@unknown] describe cluster;
Cluster Information:
   Snitch: org.apache.cassandra.locator.SimpleSnitch
   Partitioner: org.apache.cassandra.dht.RandomPartitioner
   Schema versions: 
cc89d940-df87-11e0--fe8ebeead9d9: [127.0.0.1, 127.0.0.2, 127.0.0.3]
{noformat}

Issue description states that affected version is 0.8.1 can you please test on 
the other version? Because I guess that this problem is already fixed.

> CLI does not display error when it is not possible to create a keyspace when 
> schemas in cluster do not agree.
> -
>
> Key: CASSANDRA-3209
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3209
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 0.8.1
> Environment: Latest brisk beta 2 deb on Ubuntu 10.10 server 64 bit.  
> (Using chef recipe to install)
>Reporter: Todd Nine
>Assignee: Pavel Yaskevich
>  Labels: cli
>
> Cluster:
> 3 nodes.  2 online, 1 offline
> describe cluster; displays 2 schema versions.  2 nodes are on 1 version, a 
> single node is on a different version.
> Issue this command in the CLI.
> create keyspace TestKeyspace with placement_strategy = 
> 'org.apache.cassandra.locator.NetworkTopologyStrategy' and 
> strategy_options=[{Brisk:3, Cassandra:0}];
> What should happen.
> An error should be displayed when the keyspace cannot be created.
> What actually happens.
> The user is presented with "null" as the output.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-3209) CLI does not display error when it is not possible to create a keyspace when schemas in cluster do not agree.

2011-10-13 Thread Pavel Yaskevich (Commented) (JIRA)

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

Pavel Yaskevich commented on CASSANDRA-3209:


I can confirm that this is not a problem for latest 0.8/1.0/trunk branch

{noformat}
[default@unknown] describe cluster;
Cluster Information:
   Snitch: org.apache.cassandra.locator.SimpleSnitch
   Partitioner: org.apache.cassandra.dht.RandomPartitioner
   Schema versions: 
22b661a0-f5f7-11e0--fe8ebeead9da: [127.0.0.1]
4b324db0-f5f7-11e0--7fd66bb03aeb: [127.0.0.2, 127.0.0.3]
[default@unknown] create keyspace ks3;
SchemaDisagreementException()
[default@unknown]
{noformat}

cassandra-1.0.0 branch still have 

{noformat}
catch (InvalidRequestException e)
{
throw new RuntimeException(e.getWhy());
}
catch (Exception e)
{
throw new RuntimeException(e.getMessage(), e);
}
{noformat}

in executeAddKeySpace method which could lead to NullPointerException if the 
message wasn't set. Can we still fix this for 1.0.0 or is it freezed completely?

> CLI does not display error when it is not possible to create a keyspace when 
> schemas in cluster do not agree.
> -
>
> Key: CASSANDRA-3209
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3209
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 0.8.1
> Environment: Latest brisk beta 2 deb on Ubuntu 10.10 server 64 bit.  
> (Using chef recipe to install)
>Reporter: Todd Nine
>Assignee: Pavel Yaskevich
>  Labels: cli
>
> Cluster:
> 3 nodes.  2 online, 1 offline
> describe cluster; displays 2 schema versions.  2 nodes are on 1 version, a 
> single node is on a different version.
> Issue this command in the CLI.
> create keyspace TestKeyspace with placement_strategy = 
> 'org.apache.cassandra.locator.NetworkTopologyStrategy' and 
> strategy_options=[{Brisk:3, Cassandra:0}];
> What should happen.
> An error should be displayed when the keyspace cannot be created.
> What actually happens.
> The user is presented with "null" as the output.

--
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-3209) CLI does not display error when it is not possible to create a keyspace when schemas in cluster do not agree.

2011-10-13 Thread Pavel Yaskevich (Commented) (JIRA)

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

Pavel Yaskevich commented on CASSANDRA-3209:


If we can't fix anything for 1.0.0 just mark it as Not A Problem please.

> CLI does not display error when it is not possible to create a keyspace when 
> schemas in cluster do not agree.
> -
>
> Key: CASSANDRA-3209
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3209
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 0.8.1
> Environment: Latest brisk beta 2 deb on Ubuntu 10.10 server 64 bit.  
> (Using chef recipe to install)
>Reporter: Todd Nine
>Assignee: Pavel Yaskevich
>  Labels: cli
> Fix For: 1.0.0
>
> Attachments: CASSANDRA-3209.patch
>
>
> Cluster:
> 3 nodes.  2 online, 1 offline
> describe cluster; displays 2 schema versions.  2 nodes are on 1 version, a 
> single node is on a different version.
> Issue this command in the CLI.
> create keyspace TestKeyspace with placement_strategy = 
> 'org.apache.cassandra.locator.NetworkTopologyStrategy' and 
> strategy_options=[{Brisk:3, Cassandra:0}];
> What should happen.
> An error should be displayed when the keyspace cannot be created.
> What actually happens.
> The user is presented with "null" as the output.

--
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-3209) CLI does not display error when it is not possible to create a keyspace when schemas in cluster do not agree.

2011-10-13 Thread Jonathan Ellis (Commented) (JIRA)

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

Jonathan Ellis commented on CASSANDRA-3209:
---

We can fix 1.0 branch -> 1.0.1 release.  1.0.0 release is frozen.

> CLI does not display error when it is not possible to create a keyspace when 
> schemas in cluster do not agree.
> -
>
> Key: CASSANDRA-3209
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3209
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 0.8.1
> Environment: Latest brisk beta 2 deb on Ubuntu 10.10 server 64 bit.  
> (Using chef recipe to install)
>Reporter: Todd Nine
>Assignee: Pavel Yaskevich
>  Labels: cli
> Fix For: 1.0.0
>
> Attachments: CASSANDRA-3209.patch
>
>
> Cluster:
> 3 nodes.  2 online, 1 offline
> describe cluster; displays 2 schema versions.  2 nodes are on 1 version, a 
> single node is on a different version.
> Issue this command in the CLI.
> create keyspace TestKeyspace with placement_strategy = 
> 'org.apache.cassandra.locator.NetworkTopologyStrategy' and 
> strategy_options=[{Brisk:3, Cassandra:0}];
> What should happen.
> An error should be displayed when the keyspace cannot be created.
> What actually happens.
> The user is presented with "null" as the output.

--
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