cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew F. Dennis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-1073) EOFException with Cassandra.Client.get_range_slices() API
Date Tue, 25 May 2010 03:35:25 GMT

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

Matthew F. Dennis commented on CASSANDRA-1073:
----------------------------------------------

sstablekeys appears broken for me after any tests run, failure or not.  It works fine if executed
on something in the system keyspace data in /var/lib/cassandra/etc

mdennis@toptop:~/mdev/trunk$ bin/sstablekeys build/test/cassandra/data/Keyspace1/Standard1-c-1-Data.db

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
	at java.lang.String.checkBounds(String.java:397)
	at java.lang.String.<init>(String.java:482)
	at org.apache.cassandra.dht.RandomPartitioner.convertFromDiskFormat(RandomPartitioner.java:63)
	at org.apache.cassandra.tools.SSTableExport.enumeratekeys(SSTableExport.java:161)
	at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:370)


> EOFException with Cassandra.Client.get_range_slices() API
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-1073
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1073
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.6
>            Reporter: Frank Du
>            Assignee: Matthew F. Dennis
>             Fix For: 0.6.3
>
>
> Below is the snippet I tried to run. The keyspace is named 'Keyspac1', with only 1 column
family named 'CF1'. 
> 		ColumnParent cp = new ColumnParent("CF1");
> 		
> 		SlicePredicate predicate = new SlicePredicate();
> 		SliceRange sliceRange = new SliceRange();
> 		sliceRange.setStart(new byte[0]);
> 		sliceRange.setFinish(new byte[0]);
> 		predicate.setSlice_range(sliceRange);
> 		
> 		KeyRange range = new KeyRange(10);
> 		range.setStart_key("".getBytes());
> 		range.setEnd_key("".getBytes());
> 		
> 		client.set_keyspace(keyspace);
> 		List<KeySlice> slices = client.get_range_slices(cp, predicate, range, ConsistencyLevel.ONE);
> Then an EOFException was spit out. For readability, it is included in the next comment.

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


Mime
View raw message