cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Eriksson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7614) sstablelevelreset hangs when no sstables are found, Errors on bad ks/table
Date Fri, 25 Jul 2014 08:28:38 GMT

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

Marcus Eriksson commented on CASSANDRA-7614:
--------------------------------------------

+1

> sstablelevelreset hangs when no sstables are found, Errors on bad ks/table
> --------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7614
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7614
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Tyler Hobbs
>            Assignee: Yuki Morishita
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: 7614.txt
>
>
> If {{sstablelevelreset}} is run on a table that has no sstables, you get good message
about it, but it hangs afterwards:
> {noformat}
> ~/cassandra $ tools/bin/sstablelevelreset --really-reset foobar bar
> Found no sstables, did you give the correct keyspace/columnfamily?
> {noformat}
> If you use a keyspace that does not exist, you get a NullPointerException (and it hangs):
> {noformat}
> ~/cassandra $ tools/bin/sstablelevelreset --really-reset doesnotexist doesnotexist
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.cassandra.db.Keyspace.createReplicationStrategy(Keyspace.java:286)
> 	at org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:274)
> 	at org.apache.cassandra.db.Keyspace.open(Keyspace.java:122)
> 	at org.apache.cassandra.db.Keyspace.openWithoutSSTables(Keyspace.java:105)
> 	at org.apache.cassandra.tools.SSTableLevelResetter.main(SSTableLevelResetter.java:64)
> {noformat}
> If you use a keyspace that exists, but a table that does not exist, you get an IllegalArgumentException
(and it hangs):
> {noformat}
> ~/cassandra $ tools/bin/sstablelevelreset --really-reset foobar doesnotexist
> Exception in thread "main" java.lang.IllegalArgumentException: Unknown keyspace/cf pair
(foobar.efefef)
> 	at org.apache.cassandra.db.Keyspace.getColumnFamilyStore(Keyspace.java:179)
> 	at org.apache.cassandra.tools.SSTableLevelResetter.main(SSTableLevelResetter.java:65)
> {noformat}
> It also appears to hang even when it should succeed:
> {noformat}
> ~/cassandra $ tools/bin/sstablelevelreset --really-reset foobar bar
> Changing level from 0 to 0 on tools/bin/../../data/data/foobar/bar-3ce1dd10136411e48da76b09a6cc3d5a/foobar-bar-ka-1-Data.db
> {noformat}
> Additionally, it doesn't raise any errors when run against a non-LCS table.



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

Mime
View raw message