cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Yeksigian (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5125) Support indexes on composite column components
Date Thu, 04 Apr 2013 04:17:16 GMT

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

Carl Yeksigian commented on CASSANDRA-5125:
-------------------------------------------

A few errors when running the test suite:

Testcase: testCli(org.apache.cassandra.cli.CliTest):	Caused an ERROR
java.lang.RuntimeException: org.apache.cassandra.db.marshal.MarshalException: A long is exactly
8 bytes: 4
	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1533)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.apache.cassandra.db.marshal.MarshalException: A long is exactly 8 bytes: 4
	at org.apache.cassandra.db.marshal.LongType.getString(LongType.java:69)
	at org.apache.cassandra.db.index.AbstractSimplePerColumnSecondaryIndex.insert(AbstractSimplePerColumnSecondaryIndex.java:121)
	at org.apache.cassandra.db.index.SecondaryIndexManager$PerColumnIndexUpdater.update(SecondaryIndexManager.java:623)
	at org.apache.cassandra.db.AtomicSortedColumns$Holder.addColumn(AtomicSortedColumns.java:313)
	at org.apache.cassandra.db.AtomicSortedColumns.addAllWithSizeDelta(AtomicSortedColumns.java:168)
	at org.apache.cassandra.db.Memtable.resolve(Memtable.java:253)
	at org.apache.cassandra.db.Memtable.put(Memtable.java:169)
	at org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:852)
	at org.apache.cassandra.db.Table.apply(Table.java:379)
	at org.apache.cassandra.db.Table.apply(Table.java:342)
	at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:189)
	at org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:667)
	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1529)
	... 3 more
	
Testcase: testIndexDeletions(org.apache.cassandra.db.ColumnFamilyStoreTest):	Caused an ERROR
A long is exactly 8 bytes: 4
org.apache.cassandra.db.marshal.MarshalException: A long is exactly 8 bytes: 4
	at org.apache.cassandra.db.marshal.LongType.getString(LongType.java:69)
	at org.apache.cassandra.db.index.AbstractSimplePerColumnSecondaryIndex.insert(AbstractSimplePerColumnSecondaryIndex.java:121)
	at org.apache.cassandra.db.index.SecondaryIndexManager$PerColumnIndexUpdater.update(SecondaryIndexManager.java:623)
	at org.apache.cassandra.db.AtomicSortedColumns$Holder.addColumn(AtomicSortedColumns.java:313)
	at org.apache.cassandra.db.AtomicSortedColumns.addAllWithSizeDelta(AtomicSortedColumns.java:168)
	at org.apache.cassandra.db.Memtable.resolve(Memtable.java:253)
	at org.apache.cassandra.db.Memtable.put(Memtable.java:169)
	at org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:852)
	at org.apache.cassandra.db.Table.apply(Table.java:379)
	at org.apache.cassandra.db.Table.apply(Table.java:342)
	at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:189)
	at org.apache.cassandra.db.ColumnFamilyStoreTest.testIndexDeletions(ColumnFamilyStoreTest.java:301)


Testcase: testIndexUpdate(org.apache.cassandra.db.ColumnFamilyStoreTest):	Caused an ERROR
Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at org.apache.cassandra.db.ColumnFamilyStoreTest.testIndexUpdate(ColumnFamilyStoreTest.java:398)
                
> Support indexes on composite column components
> ----------------------------------------------
>
>                 Key: CASSANDRA-5125
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5125
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>             Fix For: 2.0
>
>         Attachments: 0001-Refactor-aliases-into-column_metadata.txt, 0002-Generalize-CompositeIndex-for-all-column-type.txt,
0003-Handle-new-type-of-IndexExpression.txt, 0004-Handle-partition-key-indexing.txt
>
>
> Given
> {code}
> CREATE TABLE foo (
>   a int,
>   b int,
>   c int,
>   PRIMARY KEY (a, b)
> );
> {code}
> We should support {{CREATE INDEX ON foo(b)}}.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message