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

Tyler Hobbs commented on CASSANDRA-8221:
----------------------------------------

You'll need to look at the callers of that method.  You could potentially do 
any of these:
* pass in the keyspace name as a parameter to that method
* catch IllegalStateExceptions and rethrow them with a message that includes 
the keyspace name
* instead of throwing an IllegalStateException, return null and let the caller 
throw the exception with a better message (probably my preferred approach)

> Specify keyspace in error message when streaming fails due to missing replicas
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8221
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8221
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Tyler Hobbs
>            Assignee: Rajanarayanan Thottuvaikkatumana
>            Priority: Trivial
>              Labels: lhf
>             Fix For: 2.0.12, 2.1.2
>
>
> When there aren't sufficient live replicas for streaming (during bootstrap, 
> etc), you'll get an error message like "unable to find sufficient sources for 
> streaming range".  It would be helpful to include the keyspace that this 
> failed for, since each keyspace can have different replication settings.



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

Reply via email to