You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2012/05/02 12:08:52 UTC

[jira] [Updated] (CASSANDRA-4200) Move error on 1 node cluster

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

Sylvain Lebresne updated CASSANDRA-4200:
----------------------------------------

    Attachment: 4200.txt

The problem is that RangeStreamer excludes localhost by default, but it shouldn't do that for move.

Attached patch to fix (it moves the locahost exclusion out of RangeStreamer, but I think that is cleaner like that).
                
> Move error on 1 node cluster
> ----------------------------
>
>                 Key: CASSANDRA-4200
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4200
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Nick Bailey
>             Fix For: 1.1.1
>
>         Attachments: 4200.txt
>
>
> Attempting to move a node in a 1 node cluster with a keyspace using NTS produces an error:
> {noformat}
> bin/nodetool -h localhost move 0
> Exception in thread "main" java.lang.IllegalStateException: unable to find sufficient sources for streaming range (0,129685538820263942208828358218513421652]
> at org.apache.cassandra.dht.RangeStreamer.getRangeFetchMap(RangeStreamer.java:197)
> 	at org.apache.cassandra.dht.RangeStreamer.getWorkMap(RangeStreamer.java:205)
> 	at org.apache.cassandra.service.StorageService.move(StorageService.java:2419)
> 	at org.apache.cassandra.service.StorageService.move(StorageService.java:2327)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira