Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-377

Cannot get_slice from CF defined with CompareWith="TimeUUIDType"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • None
    • Normal

    Description

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

      Attachments

        1. CASSANDRA-377.diff
          0.8 kB
          Evan Weaver

        Activity

          People

            jbellis Jonathan Ellis
            eweaver Evan Weaver
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: