cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10584) reads with EACH_QUORUM on keyspace with SimpleTopologyStrategy throw a ClassCastException
Date Thu, 05 Nov 2015 23:29:27 GMT

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

Aleksey Yeschenko commented on CASSANDRA-10584:
-----------------------------------------------

Committed as [f3eb4ce40b3a57768c6368546ed0ca16d8634f54|https://github.com/apache/cassandra/commit/f3eb4ce40b3a57768c6368546ed0ca16d8634f54]
to 3.0 and merged with trunk, thanks.

Merged dtest PR, too.

> reads with EACH_QUORUM  on keyspace with SimpleTopologyStrategy throw a ClassCastException
> ------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-10584
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10584
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Andy Tolbert
>            Assignee: Carl Yeksigian
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> I think this may be a regression introduced w/ [CASSANDRA-9602].  Starting with C* 3.0.0-rc2
an error is returned when querying a keyspace with {{SimpleTopologyStrategy}} using EACH_QUORUM
CL:
> {noformat}
> cqlsh> create keyspace test with replication = {'class': 'SimpleStrategy', 'replication_factor':
1};
> cqlsh> create table test.test (k int PRIMARY KEY, i int);
> cqlsh> consistency EACH_QUORUM;
> Consistency level set to EACH_QUORUM.
> cqlsh> select * from test.test;
> ServerError: <ErrorMessage code=0000 [Server error] message="java.lang.ClassCastException:
org.apache.cassandra.locator.SimpleStrategy cannot be cast to org.apache.cassandra.locator.NetworkTopologyStrategy">
> {noformat}
> The exception yielded in the system logs:
> {noformat}
> ERROR [SharedPool-Worker-1] 2015-10-23 13:02:15,405 ErrorMessage.java:336 - Unexpected
exception during request
> java.lang.ClassCastException: org.apache.cassandra.locator.SimpleStrategy cannot be cast
to org.apache.cassandra.locator.NetworkTopologyStrategy
>         at org.apache.cassandra.db.ConsistencyLevel.filterForEachQuorum(ConsistencyLevel.java:227)
~[main/:na]
>         at org.apache.cassandra.db.ConsistencyLevel.filterForQuery(ConsistencyLevel.java:188)
~[main/:na]
>         at org.apache.cassandra.db.ConsistencyLevel.filterForQuery(ConsistencyLevel.java:180)
~[main/:na]
>         at org.apache.cassandra.service.StorageProxy$RangeIterator.computeNext(StorageProxy.java:1795)
~[main/:na]
>         at org.apache.cassandra.service.StorageProxy$RangeIterator.computeNext(StorageProxy.java:1762)
~[main/:na]
>         at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)
~[main/:na]
>         at com.google.common.collect.Iterators$PeekingImpl.hasNext(Iterators.java:1149)
~[guava-18.0.jar:na]
>         at org.apache.cassandra.service.StorageProxy$RangeMerger.computeNext(StorageProxy.java:1814)
~[main/:na]
>         at org.apache.cassandra.service.StorageProxy$RangeMerger.computeNext(StorageProxy.java:1799)
~[main/:na]
>         at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)
~[main/:na]
>         at org.apache.cassandra.service.StorageProxy$RangeCommandIterator.computeNext(StorageProxy.java:1925)
~[main/:na]
>         at org.apache.cassandra.service.StorageProxy$RangeCommandIterator.computeNext(StorageProxy.java:1892)
~[main/:na]
>         at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)
~[main/:na]
>         at org.apache.cassandra.db.partitions.WrappingPartitionIterator.hasNext(WrappingPartitionIterator.java:33)
~[main/:na]
>         at org.apache.cassandra.db.partitions.CountingPartitionIterator.hasNext(CountingPartitionIterator.java:49)
~[main/:na]
>         at org.apache.cassandra.db.partitions.WrappingPartitionIterator.hasNext(WrappingPartitionIterator.java:33)
~[main/:na]
>         at org.apache.cassandra.db.partitions.CountingPartitionIterator.hasNext(CountingPartitionIterator.java:49)
~[main/:na]
>         at org.apache.cassandra.service.pager.AbstractQueryPager$PagerIterator.hasNext(AbstractQueryPager.java:99)
~[main/:na]
>         at org.apache.cassandra.cql3.statements.SelectStatement.process(SelectStatement.java:610)
~[main/:na]
>         at org.apache.cassandra.cql3.statements.SelectStatement.processResults(SelectStatement.java:371)
~[main/:na]
>         at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:327)
~[main/:na]
>         at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:213)
~[main/:na]
>         at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:76)
~[main/:na]
>         at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:205)
~[main/:na]
>         at org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:236)
~[main/:na]
>         at org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:221)
~[main/:na]
>         at org.apache.cassandra.transport.messages.QueryMessage.execute(QueryMessage.java:115)
~[main/:na]
>         at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:507)
[main/:na]
>         at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:401)
[main/:na]
>         at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_60]
>         at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
[main/:na]
>         at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [main/:na]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
> {noformat}
> On 3.0.0-rc1 we get an invalid query error back instead (as expected with prior to [CASSANDRA-9602]):
> {noformat}
> InvalidRequest: code=2200 [Invalid query] message="EACH_QUORUM ConsistencyLevel is only
supported for writes"
> {noformat}



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

Mime
View raw message