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] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no effect
Date Mon, 10 Aug 2009 04:56:14 GMT

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

Evan Weaver commented on CASSANDRA-357:
---------------------------------------

Fixes one bug, but causes another.

DEBUG - weakreadlocal reading SliceFromReadCommand(table='Twitter', key='test_get_super_sub_keys_with_count',
column_parent='QueryPath(columnFamilyName='StatusRelationships', superColumnName='[B@2bb57fd1',
columnName='null')', start='', finish='', isAscending=false, count=1)
ERROR - Internal error processing get_slice
java.nio.BufferUnderflowException
  at java.nio.Buffer.nextGetIndex(Buffer.java:480)
  at java.nio.HeapByteBuffer.getLong(HeapByteBuffer.java:387)
  at org.apache.cassandra.db.marshal.LexicalUUIDType.getUUID(LexicalUUIDType.java:11)
  at org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:10)
  at org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:5)
  at org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:80)
  at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1391)
  at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1365)
  at org.apache.cassandra.db.Table.getRow(Table.java:589)
  at org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:65)
  at org.apache.cassandra.service.StorageProxy.weakReadLocal(StorageProxy.java:609)
  at org.apache.cassandra.service.StorageProxy.readProtocol(StorageProxy.java:320)
  at org.apache.cassandra.service.CassandraServer.readColumnFamily(CassandraServer.java:94)
  at org.apache.cassandra.service.CassandraServer.getSlice(CassandraServer.java:175)
  at org.apache.cassandra.service.CassandraServer.get_slice(CassandraServer.java:220)
  at org.apache.cassandra.service.Cassandra$Processor$get_slice.process(Cassandra.java:587)
  at org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:575)
  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)

[9:47pm] jbellis: evn: the fix is to duplicate the length==0 special cases from LexicalUUIDType.compare
in TimeUUIDType
[9:47pm] jbellis: but i need to figure out why my test case isn't tripping that bug
[9:47pm] jbellis: but my brain is done for the night.  bedtime.



> CompareSubcolumnsWith= has no effect
> ------------------------------------
>
>                 Key: CASSANDRA-357
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-357
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Evan Weaver
>         Attachments: 357.patch
>
>
> CompareSubcolumnsWith= has no effect.
>           <ColumnFamily CompareWith="UTF8Type" CompareSubcolumnsWith="TimeUUIDType"
ColumnType="Super" Name="StatusRelationships" />  
> I insert:
> <[<Cassandra::UUID#13700550 time: Sun Jan 24 00:40:32 -0800 1971>,
>  <Cassandra::UUID#13700530 time: Wed Feb 16 09:21:04 -0800 1972>,
>  <Cassandra::UUID#13700540 time: Wed Apr 03 03:42:08 -0700 1974>,
>  <Cassandra::UUID#13700520 time: Tue Jul 04 14:24:16 -0700 1978>,
>  <Cassandra::UUID#13700560 time: Mon Jan 05 10:48:32 -0800 1987>]> 
> But:
>     keys = @twitter.get(:StatusRelationships, key, "user_timelines").keys
> Responds with:
> <[<Cassandra::UUID#13700560 time: Mon Jan 05 10:48:32 -0800 1987>,
>  <Cassandra::UUID#13700550 time: Sun Jan 24 00:40:32 -0800 1971>,
>  <Cassandra::UUID#13700540 time: Wed Apr 03 03:42:08 -0700 1974>,
>  <Cassandra::UUID#13700530 time: Wed Feb 16 09:21:04 -0800 1972>,
>  <Cassandra::UUID#13700520 time: Tue Jul 04 14:24:16 -0700 1978>]>.
> PS. The debug log says:
> weakreadlocal reading SliceFromReadCommand(table='Twitter', key='test_get_super_sub_keys_with_ranges',
column_parent='QueryPath(columnFamilyName='StatusRelationships', superColumnName='[B@370410a7',
columnName='null')', start='', finish='', isAscending=true, count=100)

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