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

Block creating keyspace with RF > Cassandra node count

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 3.11.x
    • Cluster/Schema
    • None
    • All
    • None

    Description

       

      Using Cassandra 3.11.10, 3 nodes cluster Cassandra allows to create a keyspace having `replication_factor` greater than the number of available nodes.

       

      -- successfully created Keyspace with RF = 3 > node count = 3
      
      CREATE KEYSPACE mykeyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 5 };
      

      From this discussion on community.datastax.com. It appears that this would lead to serious operational problems.

      Would it be OK to improve the `CREATE KEYSPACE` to block (or display warning) when attempting to set `replication_factor` > node count?

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            tringuyen Tri Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: