cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Voytitsky (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-7488) LongType.compareLongs() leads to UnsupportedOperationException
Date Wed, 02 Jul 2014 21:41:25 GMT
Eugene Voytitsky created CASSANDRA-7488:
-------------------------------------------

             Summary: LongType.compareLongs() leads to UnsupportedOperationException
                 Key: CASSANDRA-7488
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7488
             Project: Cassandra
          Issue Type: Bug
         Environment: cassandra 2.0.5
com.netflix.astyanax 1.56.48
java 1.7, 1.8 (doesn't matter)
            Reporter: Eugene Voytitsky


I get very unclear error when try to make a mutation to column family WITH COMPACT STORAGE
and using AnnotatedCompositeSerializer<LongAndInteger>(LongAndInteger.class)

{noformat}
    public static class LongAndInteger {
        @Component(ordinal = 0)
        private long aLong;
        @Component(ordinal = 1)
        private int aInt;
{noformat}

in server logs
{noformat}
ERROR [pool-12-thread-2] 2014-07-03 01:24:53,763 Message.java (line 319) Unexpected throwable
while invoking!
java.lang.UnsupportedOperationException
        at java.nio.ByteBuffer.arrayOffset(ByteBuffer.java:1022)
        at org.apache.cassandra.db.marshal.LongType.compareLongs(LongType.java:50)
        at org.apache.cassandra.db.marshal.LongType.compare(LongType.java:36)
        at org.apache.cassandra.db.marshal.LongType.compare(LongType.java:28)
        at org.apache.cassandra.db.marshal.AbstractType.compareCollectionMembers(AbstractType.java:267)
        at org.apache.cassandra.db.marshal.AbstractCompositeType.compare(AbstractCompositeType.java:85)
        at org.apache.cassandra.db.marshal.AbstractCompositeType.compare(AbstractCompositeType.java:35)
        at java.util.TreeMap.compare(TreeMap.java:1291)
        at java.util.TreeMap.put(TreeMap.java:538)
        at org.apache.cassandra.db.TreeMapBackedSortedColumns.addColumn(TreeMapBackedSortedColumns.java:90)
        at org.apache.cassandra.db.ColumnFamily.addColumn(ColumnFamily.java:116)
        at org.apache.cassandra.db.ColumnFamily.addCounter(ColumnFamily.java:133)
        at org.apache.cassandra.db.RowMutation.addCounter(RowMutation.java:149)
        at org.apache.cassandra.thrift.CassandraServer.addColumnOrSuperColumn(CassandraServer.java:890)
        at org.apache.cassandra.thrift.CassandraServer.createMutationList(CassandraServer.java:849)
        at org.apache.cassandra.thrift.CassandraServer.batch_mutate(CassandraServer.java:953)
        at org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3922)
        at org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3906)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at com.thinkaurelius.thrift.Message.invoke(Message.java:309)
        at com.thinkaurelius.thrift.Message$Invocation.execute(Message.java:90)
        at com.thinkaurelius.thrift.TDisruptorServer$InvocationHandler.onEvent(TDisruptorServer.java:625)
        at com.thinkaurelius.thrift.TDisruptorServer$InvocationHandler.onEvent(TDisruptorServer.java:619)
        at com.lmax.disruptor.WorkProcessor.run(WorkProcessor.java:112)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
{noformat}

In client code:
{noformat}
Caused by: org.apache.thrift.transport.TTransportException
	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
	at org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.java:129)
	at org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:101)
	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
	at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)
	at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
	at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)
	at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
	at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra.java:964)
	at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:950)
	at com.netflix.astyanax.thrift.ThriftKeyspaceImpl$1$1.internalExecute(ThriftKeyspaceImpl.java:122)
	at com.netflix.astyanax.thrift.ThriftKeyspaceImpl$1$1.internalExecute(ThriftKeyspaceImpl.java:119)
	at com.netflix.astyanax.thrift.AbstractOperationImpl.execute(AbstractOperationImpl.java:56)
	... 57 more
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message