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

Paulo Motta commented on CASSANDRA-12279:
-----------------------------------------

It seems 
[scrub_test.TestScrubIndexes|https://github.com/riptano/cassandra-dtest/blob/master/scrub_test.py#L180]
 is 
[failing|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-2.2-12279-dtest/lastCompletedBuild/testReport/scrub_test/TestScrubIndexes/]
 because {{parseOptionalTables}} does not include indexes. 

One way to fix this is to modify {{parseOptionalTables}} to support indexes,but 
 there are some operations that allow index (such as scrub), and some other 
that don't allow like repair, so you need to account for that when doing the 
check. Another option is to perform the validation only for repair on 
{{StorageService.forceRepairAsync}} (see 
{{StorageService.getValidColumnFamilies}}). The best option, but a bit more 
involved is to fix the root cause of the issue on {{RepairRunnable}}, which is 
to catch any {{RuntimeException}} that happens in the initial phase (setup 
tracing, {{getValidColumnFamilies}}, etc) and send a notification to 
{{RepairRunner}} via {{fireErrorAndComplete}}.

> nodetool repair hangs on non-existant table
> -------------------------------------------
>
>                 Key: CASSANDRA-12279
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12279
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Linux Ubuntu, Openjdk
>            Reporter: Benjamin Roth
>            Assignee: Masataka Yamaguchi
>            Priority: Minor
>              Labels: lhf
>         Attachments: 0001-CASSANDRA-12279-2.2.patch, 
> 0001-CASSANDRA-12279-3.0.patch, 0001-CASSANDRA-12279-trunk.patch, 
> CASSANDRA-12279-trunk.patch, new_result_example.txt, org_result_example.txt
>
>
> If nodetool repair is called with a table that does not exist, ist hangs 
> infinitely without any error message or logs.
> E.g.
> nodetool repair foo bar
> Keyspace foo exists but table bar does not



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to