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

Block/Warn creating keyspace with RF > Cassandra node count

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.11.13
    • Cluster/Schema

    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

            masokol Maciej Sokol
            tringuyen Tri Nguyen
            Maciej Sokol
            Brandon Williams, Stefan Miklosovic
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h