You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ryan McGuire (JIRA)" <ji...@apache.org> on 2014/04/30 02:57:33 UTC

[jira] [Updated] (CASSANDRA-6536) SStable gets corrupted after keyspace drop and recreation

     [ https://issues.apache.org/jira/browse/CASSANDRA-6536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McGuire updated CASSANDRA-6536:
------------------------------------

    Labels: qa-resolved  (was: )

> SStable gets corrupted after keyspace drop and recreation
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-6536
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6536
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Cassandra 1.2.12 & 1.2.13
>            Reporter: Dominic Letz
>            Assignee: Russ Hatch
>              Labels: qa-resolved
>         Attachments: 6536.py
>
>
> ERROR [ReadStage:41] 2014-01-02 14:27:00,629 CassandraDaemon.java (line 191) Exception in thread Thread[ReadStage:41,5,main]
> java.lang.RuntimeException: org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.IOException: Corrupt (negative) value length encountered
> When running a test like this the SECOND TIME:
> DROP KEYSPACE testspace;
> CREATE KEYSPACE testspace with REPLICATION = {'class':'SimpleStrategy', 'replication_factor':1} AND durable_writes = false;
> USE testspace;
> CREATE TABLE testtable (id text PRIMARY KEY, group text) WITH compression = {'sstable_compression':'LZ4Compressor'};
> CREATE INDEX testindex ON testtable (group);
> INSERT INTO testtable (id, group) VALUES ('00001', 'beta');
> INSERT INTO testtable (id, group) VALUES ('00002', 'gamma');
> INSERT INTO testtable (id, group) VALUES ('00003', 'delta');
> INSERT INTO testtable (id, group) VALUES ('00004', 'epsilon');
> INSERT INTO testtable (id, group) VALUES ('00005', 'alpha');
> INSERT INTO testtable (id, group) VALUES ('00006', 'beta');
> INSERT INTO testtable (id, group) VALUES ('00007', 'gamma');
> INSERT INTO testtable (id, group) VALUES ('00008', 'delta');
> INSERT INTO testtable (id, group) VALUES ('00009', 'epsilon');
> INSERT INTO testtable (id, group) VALUES ('00010', 'alpha');
> INSERT INTO testtable (id, group) VALUES ('00011', 'beta');
> INSERT INTO testtable (id, group) VALUES ('00012', 'gamma');
> INSERT INTO testtable (id, group) VALUES ('00013', 'delta');
> INSERT INTO testtable (id, group) VALUES ('00014', 'epsilon');
> INSERT INTO testtable (id, group) VALUES ('00015', 'alpha');
> INSERT INTO testtable (id, group) VALUES ('00016', 'beta');
> INSERT INTO testtable (id, group) VALUES ('00017', 'gamma');
> ... 
> INSERT INTO testtable (id, group) VALUES ('100000', 'alpha');
> SELECT COUNT(*) FROM testspace.testtable WHERE group = 'alpha' LIMIT 100001;



--
This message was sent by Atlassian JIRA
(v6.2#6252)