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

Mark Robson commented on CASSANDRA-348:
---------------------------------------

With 348-2.patch I get

DEBUG - get_key_range
DEBUG - reading RangeCommand(table='Keyspace1', columnFamily=Standard1, 
startWith='0', stopAt='1', maxResults=1000) from [email protected]:7000
DEBUG - Sending RangeReply(keys=[0000], completed=false) to [email protected]:7000
DEBUG - Processing response on an async result from [email protected]:7000
DEBUG - reading RangeCommand(table='Keyspace1', columnFamily=Standard1, 
startWith='0', stopAt='1', maxResults=999) from [email protected]:7000
DEBUG - Processing response on an async result from [email protected]:7000
ERROR - Internal error processing get_key_range
java.lang.UnsupportedOperationException
        at 
java.util.Collections$UnmodifiableCollection.addAll(Collections.java:1044)
        at 
org.apache.cassandra.service.StorageProxy.getKeyRange(StorageProxy.java:673)
        at 
org.apache.cassandra.service.CassandraServer.get_key_range(CassandraServer.java:557)
        at 
org.apache.cassandra.service.Cassandra$Processor$get_key_range.process(Cassandra.java:1095)
        at 
org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:758)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)

When attempting to do a range scan which crosses over nodes.

Also get the warning:

    [javac] Note: 
/home/mark/cassandra/cassandra-trunk/src/java/org/apache/cassandra/tools/KeyChecker.java
 uses or overrides a deprecated API.

At compile-time.


> Range scan over two nodes returns wrong data
> --------------------------------------------
>
>                 Key: CASSANDRA-348
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-348
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Mark Robson
>         Attachments: 348-2.patch, 348.diff, LoadAndScan.py, setup.cas
>
>
> I've got two nodes with tokens 00000000 and 88888888. I add 16 rows in which 
> are spread over them, then do a key range scan.
> I can scan part of the range successfully, but if I try to scan the entire 
> range of keys (0-f) then I get unexpected results
> ./Cassandra-remote -h localhost:9160 get_key_range Keyspace1 Standard1 0 31 
> 1000
> ['00', '01', '10', '11', '20', '21', '30', '31']
> ./Cassandra-remote -h localhost:9160 get_key_range Keyspace1 Standard1 3 81 
> 1000
> ['30', '31', '40', '41', '50', '51', '60', '61', '70', '71', '80', '81']
>  ./Cassandra-remote -h localhost:9160 get_key_range Keyspace1 Standard1 7 b1 
> 1000
> ['70', '71', '80', '81', '90', '91', 'a0', 'a1', 'b0', 'b1']
> ./Cassandra-remote -h localhost:9160 get_key_range Keyspace1 Standard1 a g 
> 1000
> ['a0', 'a1', 'b0', 'b1', 'c0', 'c1', 'd0', 'd1', 'e0', 'e1', 'f0', 'f1']
> All of which returned as I expected.
> But when I range scan the whole lot (0-g) then I get:
> ./Cassandra-remote -h localhost:9160 get_key_range Keyspace1 Standard1 0 g 
> 1000
> [ '00',
>   '90',
>   '91',
>   'a0',
>   'a1',
>   'b0',
>   'b1',
>   'c0',
>   'c1',
>   'd0',
>   'd1',
>   'e0',
>   'e1',
>   'f0',
>   'f1']
> Where have 01-81 gone?
> I'll attach the data loading script.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to