Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-3705

Don't default the datacenter name in replication_strategies when the datacenter does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Won't Fix
    • None
    • None
    • None
    • Normal

    Description

      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:

      create keyspace test;
      

      we get this created:

      Keyspace: test:
        Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
        Durable Writes: true
          Options: [datacenter1:1]
      

      This should error out immediately rather than letting the user go on to discover the error later:

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

      Related link:
      http://www.datastax.com/support-forums/topic/new-datastax-ami-ami-fd23ec94-is-not-functionnal

      Attachments

        Activity

          People

            Unassigned Unassigned
            j.casares Joaquin Casares
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: