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

Tyler Hobbs updated CASSANDRA-6205:
-----------------------------------

    Attachment: 6205.patch

I verified that CASSANDRA-5894 doesn't fix this.

Attached patch 6205.patch (and 
[branch|https://github.com/thobbs/cassandra/tree/CASSANDRA-6205]) skips the 
read meter setup when in client mode.

I'm also looking into why the dtest that uses sstableloader didn't catch this.

> sstableloader broken in 2.0 HEAD
> --------------------------------
>
>                 Key: CASSANDRA-6205
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6205
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Nick Bailey
>            Assignee: Tyler Hobbs
>             Fix For: 2.0.2
>
>         Attachments: 6205.patch
>
>
> The code for tracking sstable coldness is also executing when running 
> sstableloader which causes problems.
> {noformat}
> Exception in thread "main" java.lang.RuntimeException: Error validating 
> SELECT * FROM sstable_activity WHERE keyspace_name='test_backup_restore' and 
> columnfamily_name='cf0' and generation=1
> at 
> org.apache.cassandra.cql3.QueryProcessor.processInternal(QueryProcessor.java:190)
> at 
> org.apache.cassandra.db.SystemKeyspace.getSSTableReadMeter(SystemKeyspace.java:907)
> at 
> org.apache.cassandra.io.sstable.SSTableReader.<init>(SSTableReader.java:337)
> at 
> org.apache.cassandra.io.sstable.SSTableReader.openForBatch(SSTableReader.java:160)
> at 
> org.apache.cassandra.io.sstable.SSTableLoader$1.accept(SSTableLoader.java:112)
> at java.io.File.list(File.java:1087)
> at 
> org.apache.cassandra.io.sstable.SSTableLoader.openSSTables(SSTableLoader.java:73)
> at 
> org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:155)
> at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:68)
> Caused by: org.apache.cassandra.db.KeyspaceNotDefinedException: Keyspace 
> system does not exist
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to