cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Hearnden (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8108) ClassCastException in AbstractCellNameType
Date Tue, 14 Oct 2014 21:26:35 GMT

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

David Hearnden commented on CASSANDRA-8108:
-------------------------------------------

{noformat}
CREATE TABLE comments (
    object ascii,
    id timeuuid,
    ...
    latest_content text static,
    ...
    PRIMARY KEY (object, id)
) WITH CLUSTERING ORDER BY (id DESC)
    AND bloom_filter_fp_chance = 0.01
    AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
    AND comment = ''
    AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy',
'max_threshold': '32'}
    AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
    AND dclocal_read_repair_chance = 0.1
    AND default_time_to_live = 0
    AND gc_grace_seconds = 864000
    AND max_index_interval = 2048
    AND memtable_flush_period_in_ms = 0
    AND min_index_interval = 128
    AND read_repair_chance = 0.0
    AND speculative_retry = '99.0PERCENTILE';
{noformat}

The query that triggers the exception:
{noformat}
SELECT DISTINCT object, latest_content 
FROM comments
WHERE object IN (...);
{noformat}

I only observe this error running Cassandra 2.1.0 via the Datastax AMI 2.5.1 (Ubuntu Linux
12.04) on EC2 (ami-ada2b6c4).
I don't observe this error running Cassandra 2.1.0 on 0S X 10.9.
I'm about to test running Cassandra 2.1.0 on Ubuntu Linux 14.04 on EC2.

> ClassCastException in AbstractCellNameType
> ------------------------------------------
>
>                 Key: CASSANDRA-8108
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8108
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Cassandra 2.1.0
> Datastax AMI on EC2 (Ubuntu Linux)
>            Reporter: David Hearnden
>            Assignee: Tyler Hobbs
>
> {noformat}
> java.lang.ClassCastException: org.apache.cassandra.db.composites.Composites$EmptyComposite
cannot be cast to org.apache.cassandra.db.composites.CellName
> 	at org.apache.cassandra.db.composites.AbstractCellNameType.cellFromByteBuffer(AbstractCellNameType.java:170)
~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.service.pager.SliceQueryPager.<init>(SliceQueryPager.java:57)
~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.service.pager.MultiPartitionPager.makePager(MultiPartitionPager.java:84)
~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.service.pager.MultiPartitionPager.<init>(MultiPartitionPager.java:68)
~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.service.pager.QueryPagers.pager(QueryPagers.java:101) ~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.service.pager.QueryPagers.pager(QueryPagers.java:125) ~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:215)
~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:60)
~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:187)
~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:413)
~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:133)
~[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:422)
[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:318)
[apache-cassandra-2.1.0.jar:2.1.0]
> 	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:103)
[netty-all-4.0.20.Final.jar:4.0.20.Final]
> 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:332)
[netty-all-4.0.20.Final.jar:4.0.20.Final]
> 	at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:31)
[netty-all-4.0.20.Final.jar:4.0.20.Final]
> 	at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:323)
[netty-all-4.0.20.Final.jar:4.0.20.Final]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51]
> 	at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:163)
[apache-cassandra-2.1.0.jar:2.1.0]
> 	at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:103) [apache-cassandra-2.1.0.jar:2.1.0]
> 	at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
> {noformat}



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

Mime
View raw message