cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Morishita (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-9270) Running resetlocalschema during repair can cause repair to hang
Date Tue, 16 Jun 2015 18:56:00 GMT


Yuki Morishita commented on CASSANDRA-9270:

I think this happens in many places where they access {{Keyspace#getColumnFamilyStore}} or
related {{Schema#getCF}} and alikes.
We should re-consider those API so that caller has to explicitly handle dropped KS/CF case.
For example, we can use java8 Optional for return value or throw checked exception instead.

Any opinion?

> Running resetlocalschema during repair can cause repair to hang
> ---------------------------------------------------------------
>                 Key: CASSANDRA-9270
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: T Jake Luciani
>            Assignee: Yuki Morishita
>            Priority: Minor
>             Fix For: 2.0.x
> If you run resetlocalschema during a repair the node doing the repair can hang.
> The following test reproduces the issue quite frequently:
> This is from trunk, but happens in 2.0 and 2.1 as well.  My guess is there is some count
down latch that isn't count down when the repair msg fails to be parsed.
> {code}
> ERROR [Repair#1:10] 2015-04-30 12:57:56,675 Exception in thread
Thread[Repair#1:10,5,RMI Runtime]
> java.lang.IllegalArgumentException: Unknown keyspace/cf pair (keyspace1.standard1)
> 	at org.apache.cassandra.db.Keyspace.getColumnFamilyStore( ~[main/:na]
> 	at ~[main/:na]
> 	at ~[main/:na]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker( ~[na:1.7.0_72]
> 	at java.util.concurrent.ThreadPoolExecutor$ ~[na:1.7.0_72]
> 	at ~[na:1.7.0_72]
> {code}

This message was sent by Atlassian JIRA

View raw message