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

Reject empty options and invalid DC names in replication configuration while creating or altering a keyspace.

    XMLWordPrintableJSON

Details

    Description

      Add some restrictions around create / alter keyspace with NetworkTopologyStrategy:
      1. Do not accept empty replication configuration (no DC options after class). Cassandra checks that SimpleStrategy must have replication_factor option but does not check that at least one DC should be present in the options for NetworkTopologyStrategy.
      2. Cassandra accepts any random string as DC name replication option for NetworkTopologyStrategy while creating or altering keyspaces. Add a restriction that the options specified is valid datacenter name. Using incorrect value or simple mistake in typing the DC name can cause outage in production environment.

      Attachments

        1. trunkpatch.diff
          18 kB
          Nachiket Patil
        2. v3.0patch.diff
          18 kB
          Nachiket Patil

        Issue Links

          Activity

            People

              nachiket_patil Nachiket Patil
              nachiket_patil Nachiket Patil
              Nachiket Patil
              Jeff Jirsa
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: