cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-11021) Inserting static column fails with secondary index on clustering key
Date Fri, 15 Jan 2016 16:04:39 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-11021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-11021:
-----------------------------------------
    Assignee: Stefan Podkowinski

> Inserting static column fails with secondary index on clustering key
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-11021
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11021
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local Write-Read Paths
>            Reporter: Stefan Podkowinski
>            Assignee: Stefan Podkowinski
>
> Creating a secondary index on a clustering key fails with an exception in case a static
column is involved.
> {code}
> CREATE TABLE test (k int, t int, s text static, v text, PRIMARY KEY (k, t));
> CREATE INDEX ix ON test (t);
> INSERT INTO test(k, t, s, v) VALUES (0, 1, 'abc', 'def');
> {code}
> {code}
> ERROR [SharedPool-Worker-2] 2016-01-15 11:42:27,484 StorageProxy.java:1336 - Failed to
apply mutation locally : {}
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.cassandra.db.AbstractClusteringPrefix.get(AbstractClusteringPrefix.java:59)
~[main/:na]
>         at org.apache.cassandra.index.internal.composites.ClusteringColumnIndex.getIndexedValue(ClusteringColumnIndex.java:58)
~[main/:na]
>         at org.apache.cassandra.index.internal.CassandraIndex.getIndexedValue(CassandraIndex.java:598)
~[main/:na]
>         at org.apache.cassandra.index.internal.CassandraIndex.insert(CassandraIndex.java:490)
~[main/:na]
>         at org.apache.cassandra.index.internal.CassandraIndex.access$100(CassandraIndex.java:53)
~[main/:na]
>         at org.apache.cassandra.index.internal.CassandraIndex$1.indexPrimaryKey(CassandraIndex.java:437)
~[main/:na]
>         at org.apache.cassandra.index.internal.CassandraIndex$1.insertRow(CassandraIndex.java:347)
~[main/:na]
>         at org.apache.cassandra.index.SecondaryIndexManager$WriteTimeTransaction.onInserted(SecondaryIndexManager.java:795)
~[main/:na]
>         at org.apache.cassandra.db.partitions.AtomicBTreePartition$RowUpdater.apply(AtomicBTreePartition.java:275)
~[main/:na]
>         at org.apache.cassandra.db.partitions.AtomicBTreePartition.addAllWithSizeDelta(AtomicBTreePartition.java:154)
~[main/:na]
>         at org.apache.cassandra.db.Memtable.put(Memtable.java:240) ~[main/:na]
>         at org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:1145)
~[main/:na]
>         at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:494) ~[main/:na]
>         at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:384) ~[main/:na]
>         at org.apache.cassandra.db.Mutation.apply(Mutation.java:205) ~[main/:na]
>         at org.apache.cassandra.service.StorageProxy$$Lambda$166/492512700.run(Unknown
Source) ~[na:na]
>         at org.apache.cassandra.service.StorageProxy$8.runMayThrow(StorageProxy.java:1330)
~[main/:na]
>         at org.apache.cassandra.service.StorageProxy$LocalMutationRunnable.run(StorageProxy.java:2480)
[main/:n
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message