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

Replication validation should reject RF > nodes in cluster

    XMLWordPrintableJSON

Details

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

    Description

      On my local, single node cluster, RF=3 inserts should not succeed:

      cqlsh> CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };
      cqlsh> use mykeyspace ;
      cqlsh:mykeyspace> CREATE TABLE users (
                    ...   user_id int PRIMARY KEY, 
                    ...   fname text, 
                    ...   lname text
                    ... );
      cqlsh:mykeyspace> INSERT INTO users (user_id,  fname, lname) 
                    ...   VALUES (1745, 'john', 'smith');
      cqlsh:mykeyspace> select * from users;
      
       user_id | fname | lname
      ---------+-------+-------
          1745 |  john | smith
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jbellis Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h 20m
                  1h 20m