cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Bailey (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-5820) sstableloader broken in 1.2.7/1.2.8
Date Mon, 29 Jul 2013 16:41:51 GMT
Nick Bailey created CASSANDRA-5820:

             Summary: sstableloader broken in 1.2.7/1.2.8
                 Key: CASSANDRA-5820
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 1.2.7, 1.2.8
            Reporter: Nick Bailey

I don't see this happen on 1.2.6.

To reproduce (on a fresh single node cluster):

[Nicks-MacBook-Pro:11:33:06 (cassandra-1.2.7)*] cassandra$ bin/cqlsh
Connected to Test Cluster at localhost:9160.
[cqlsh 3.1.4 | Cassandra 1.2.7-SNAPSHOT | CQL spec 3.0.0 | Thrift protocol 19.36.0]
cqlsh> CREATE KEYSPACE test_backup_restore WITH replication = {'class': 'SimpleStrategy',
'replication_factor': 1};
cqlsh> use test_backup_restore;
cqlsh:test_backup_restore> CREATE TABLE cf0 (
                       ...   a text PRIMARY KEY,
                       ...   b text,
                       ...   c text
                       ... );
cqlsh:test_backup_restore> INSERT INTO cf0 (a, b, c) VALUES ( 'a', 'b', 'c');
cqlsh:test_backup_restore> select * from cf0;

 a | b | c
 a | b | c

cqlsh:test_backup_restore> ^D
[Nicks-MacBook-Pro:11:34:22 (cassandra-1.2.7)*] cassandra$ bin/nodetool snapshot
Requested creating snapshot for: all keyspaces
Snapshot directory: 1375115668449
[Nicks-MacBook-Pro:11:34:40 (cassandra-1.2.7)*] cassandra$ mkdir -p test_backup_restore/snapshots
[Nicks-MacBook-Pro:11:34:48 (cassandra-1.2.7)*] cassandra$ cp /var/lib/cassandra/data/test_backup_restore/cf0/snapshots/1375115668449/*
[Nicks-MacBook-Pro:11:35:14 (cassandra-1.2.7)*] cassandra$ bin/sstableloader --debug -v -d test_backup_restore/snapshots
Streaming revelant part of test_backup_restore/snapshots/test_backup_restore-cf0-ic-1-Data.db
 to [/] cannot be cast to
java.lang.ClassCastException: cannot
be cast to
	at org.apache.cassandra.streaming.StreamOut.createPendingFiles(
	at org.apache.cassandra.streaming.StreamOut.transferSSTables(

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:

View raw message