Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
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
Attachments
Issue Links
- is duplicated by
-
CASSANDRA-9605 Error message when creating a KS replicated to a non-existent DC
- Resolved
-
CASSANDRA-13702 Error on keyspace create/alter if referencing non-existing DC in cluster
- Resolved
- is related to
-
CASSANDRA-14952 NPE when using allocate_tokens_for_keyspace and add new DC
- Resolved