cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evan Weaver (JIRA)" <j...@apache.org>
Subject [jira] Created: (CASSANDRA-377) Cannot get_slice from CF defined with CompareWith="TimeUUIDType"
Date Wed, 19 Aug 2009 01:55:14 GMT
Cannot get_slice from CF defined with CompareWith="TimeUUIDType"
----------------------------------------------------------------

                 Key: CASSANDRA-377
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-377
             Project: Cassandra
          Issue Type: Bug
            Reporter: Evan Weaver


      <Keyspace Name="Multiblog">      
        <KeysCachedFraction>0.01</KeysCachedFraction>
        <ColumnFamily CompareWith="TimeUUIDType" Name="Blogs"/>
        <ColumnFamily CompareWith="TimeUUIDType" Name="Comments"/>
      </Keyspace>

>> multiblog.insert(:Comments, "test", {UUID.new => 'I like this cat'})
=> nil
>> multiblog.get(:Comments, "test")
Thrift::ApplicationException: Thrift::ApplicationException

Server said:

DEBUG - get_slice_from
ERROR - Internal error processing get_slice
org.apache.cassandra.db.marshal.MarshalException: UUIDs must be exactly 16 bytes
	at org.apache.cassandra.db.marshal.TimeUUIDType.getString(TimeUUIDType.java:48)
	at org.apache.cassandra.db.SliceFromReadCommand.toString(SliceFromReadCommand.java:71)
	at java.lang.String.valueOf(String.java:2827)
	at java.lang.StringBuilder.append(StringBuilder.java:115)
	at org.apache.cassandra.service.StorageProxy.weakReadLocal(StorageProxy.java:602)
	at org.apache.cassandra.service.StorageProxy.readProtocol(StorageProxy.java:320)
	at org.apache.cassandra.service.CassandraServer.readColumnFamily(CassandraServer.java:92)
	at org.apache.cassandra.service.CassandraServer.getSlice(CassandraServer.java:173)
	at org.apache.cassandra.service.CassandraServer.get_slice(CassandraServer.java:213)
	at org.apache.cassandra.service.Cassandra$Processor$get_slice.process(Cassandra.java:572)
	at org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:560)
	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:637)


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