You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Nick Bailey (JIRA)" <ji...@apache.org> on 2012/04/30 22:29:47 UTC

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

Nick Bailey created CASSANDRA-4200:
--------------------------------------

             Summary: 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


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

        

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

Posted by "Vijay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267706#comment-13267706 ] 

Vijay commented on CASSANDRA-4200:
----------------------------------

+1
                
> 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
>            Assignee: Sylvain Lebresne
>             Fix For: 1.1.1
>
>         Attachments: 4200-v2.txt, 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

        

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

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13266579#comment-13266579 ] 

Sylvain Lebresne commented on CASSANDRA-4200:
---------------------------------------------

Note: I've also added a test for this in the dtests
                
> 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
>            Assignee: Sylvain Lebresne
>             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

        

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

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-4200:
--------------------------------------

    Reviewer: vijay2win@yahoo.com
    
> 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
>            Assignee: Sylvain Lebresne
>             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

        

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

Posted by "Vijay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13266772#comment-13266772 ] 

Vijay commented on CASSANDRA-4200:
----------------------------------

attached patch works but it streams the ranges back to the localhost, which i am not sure is intended.


 INFO [RMI TCP Connection(8)-10.2.179.47] 2012-05-02 10:50:17,366 StorageService.java (line 752) MOVING: fetching new ranges and streaming old ranges
 INFO [StreamStage:1] 2012-05-02 10:50:17,367 StreamOut.java (line 113) Beginning transfer to localhost/127.0.0.1
 INFO [StreamStage:1] 2012-05-02 10:50:17,367 StreamOut.java (line 94) Flushing memtables for [CFS(Keyspace='Keyspace1', ColumnFamily='Counter1'), CFS(Keyspace='Keyspace1', ColumnFamily='Super1'), CFS(Keyspace='Keyspace1', ColumnFamily='SuperCounter1'), CFS(Keyspace='Keyspace1', ColumnFamily='Standard1')]...
 INFO [StreamStage:1] 2012-05-02 10:50:17,368 StreamOut.java (line 159) Stream context metadata [/var/lib/cassandra/data/Keyspace1/Standard1/Keyspace1-Standard1-ib-69-Data.db sections=1 progress=0/279349056 - 0%, /var/lib/cassandra/data/Keyspace1/Standard1/Keyspace1-Standard1-ib-86-Data.db sections=1 progress=0/279349056 - 0%, /var/lib/cassandra/data/Keyspace1/Standard1/Keyspace1-Standard1-ib-89-Data.db sections=1 progress=0/59903136 - 0%], 3 sstables.
 INFO [StreamStage:1] 2012-05-02 10:50:17,368 StreamOutSession.java (line 161) Streaming to localhost/127.0.0.1
 INFO [Streaming to localhost/127.0.0.1:2] 2012-05-02 10:50:25,211 StreamReplyVerbHandler.java (line 55) Successfully sent /var/lib/cassandra/data/Keyspace1/Standard1/Keyspace1-Standard1-ib-69-Data.db to /127.0.0.1
 INFO [Streaming to localhost/127.0.0.1:2] 2012-05-02 10:50:32,983 StreamReplyVerbHandler.java (line 55) Successfully sent /var/lib/cassandra/data/Keyspace1/Standard1/Keyspace1-Standard1-ib-86-Data.db to /127.0.0.1
 INFO [Streaming to localhost/127.0.0.1:2] 2012-05-02 10:50:34,760 StreamReplyVerbHandler.java (line 55) Successfully sent /var/lib/cassandra/data/Keyspace1/Standard1/Keyspace1-Standard1-ib-89-Data.db to /127.0.0.1
 INFO [Thread-15] 2012-05-02 10:50:34,761 StreamInSession.java (line 190) Finished streaming session 1335981017366948000 from localhost/127.0.0.1

                
> 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
>            Assignee: Sylvain Lebresne
>             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

        

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

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: 4200-v2.txt

Oups, you're right, I don't know what I was thinking. Attaching v2 that simply recognize that localhost is a valid source (but don't stream from it).
                
> 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
>            Assignee: Sylvain Lebresne
>             Fix For: 1.1.1
>
>         Attachments: 4200-v2.txt, 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