Don't default the datacenter name in replication_strategies when the datacenter
does not exist
----------------------------------------------------------------------------------------------
Key: CASSANDRA-3705
URL: https://issues.apache.org/jira/browse/CASSANDRA-3705
Project: Cassandra
Issue Type: Bug
Affects Versions: 1.0.5
Reporter: Joaquin Casares
When using the AMI, which is currently set to use the EC2 snitch and the
NetworkTopologyStrategy is set to default by the cli, all keyspaces default to
datacenter1 being the datacenter name.
So when running:
{noformat}
create keyspace test;
{noformat}
we get this created:
{noformat}
Keyspace: test:
Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
Durable Writes: true
Options: [datacenter1:1]
{noformat}
This should error out immediately rather than letting the user go on to
discover the error later:
{noformat}
[default@test] set User['jsmith']['first'] = 'John';
null
UnavailableException()
at
org.apache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:15206)
at org.apache.cassandra.thrift.Cassandra$Client.recv_insert(Cassandra.java:858)
at org.apache.cassandra.thrift.Cassandra$Client.insert(Cassandra.java:830)
at org.apache.cassandra.cli.CliClient.executeSet(CliClient.java:902)
at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:216)
at
org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:220)
at org.apache.cassandra.cli.CliMain.main(CliMain.java:346)
{noformat}
Related link:
http://www.datastax.com/support-forums/topic/new-datastax-ami-ami-fd23ec94-is-not-functionnal
--
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