cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5953) Replication validation is broken
Date Thu, 12 Sep 2013 11:35:54 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-5953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13765354#comment-13765354
] 

Jonathan Ellis commented on CASSANDRA-5953:
-------------------------------------------

The old contract used to be, "We will allow you to create it, but you promise to add the required
nodes before inserting or we will reject the insert."

This is the right behavior, because the hint contract is, "Any dead or timing out nodes will
get hinted so you don't need to run repair (as long as there is no hardware loss) if it comes
back up within the hint window."  We can't do this if the missing nodes simply don't exist.
                
> Replication validation is broken
> --------------------------------
>
>                 Key: CASSANDRA-5953
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5953
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 1.2.10
>
>
> On my local, single node cluster, RF=3 inserts should not succeed:
> {noformat}
> 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
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message