cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russ Hatch (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-6536) SStable gets corrupted after keyspace drop and recreation
Date Thu, 27 Mar 2014 21:46:19 GMT

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

Russ Hatch updated CASSANDRA-6536:
----------------------------------

    Attachment: 6536.py

attaching repro dtest (was unable to reproduce).

> 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
>         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)

Mime
View raw message