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