[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-08-04 Thread Tyler Hobbs (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14654428#comment-14654428
 ] 

Tyler Hobbs commented on CASSANDRA-9659:


I believe that somewhere in the documentation (maybe the native protocol spec?) 
we state that the paging state can only be used for identical queries, but 
that's not strictly enforced.  To do that, we would need to save the query or 
query ID in the paging state for later validation.

A simpler fix that would catch this case in particular is something like this: 
in {{SelectStatement.getRangeCommand()}}, check 
{{keyBounds.contains(options.getPagingState().partitionKey)}}.  If it doesn't, 
throw an {{InvalidRequestException}} with a good message.

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: CqlProxyInvocationHandler sets PagingState AFTER 1st 
 company call for results.PNG, Multiple companyid IN clause with secondary 
 index failure.PNG, rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-08-03 Thread Benjamin Lerer (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14651940#comment-14651940
 ] 

Benjamin Lerer commented on CASSANDRA-9659:
---

Ideally, it would be best if Cassandra could detect the use of a wrong 
pageState and return a clear error in this case.
[~thobbs] do you have any idea how we could do that? 

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: CqlProxyInvocationHandler sets PagingState AFTER 1st 
 company call for results.PNG, Multiple companyid IN clause with secondary 
 index failure.PNG, rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
 [apache-cassandra-2.1.3.jar:2.1.3]
 at java.lang.Thread.run(Unknown Source) [na:1.7.0_76]
 INFO  [BatchlogTasks:1] 2015-06-23 13:12:17,521 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-08-03 Thread Benjamin Lerer (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14651729#comment-14651729
 ] 

Benjamin Lerer commented on CASSANDRA-9659:
---

{quote}Does this make sense that the PagingState is set incorrectly when making 
the 2nd database call and would cause the issue?{quote}

The paging state can only be used to iterate over the query for which it has 
been created. It is the reason why you get the exception. 

The {{IN}} query is effectively not supported. If it was, the result would be 
the same as issuing the 2 queries and adding the result of the second one to 
the result of the first one.

My understanding is that you want to be able to paginate over the results of 
the 2 queries within you UI. For this, you will not be able to use directly the 
paging state. You will have to have some extra logic that keep track of the 
paging state for each query and is able to deal with the transition of one 
query to the next or to the previous.

For the problem of the {{IN}} query, I have open CASSANDRA-9958.

If everything is fine for you, I will close this ticket. 

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: CqlProxyInvocationHandler sets PagingState AFTER 1st 
 company call for results.PNG, Multiple companyid IN clause with secondary 
 index failure.PNG, rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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 
 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-08-03 Thread Dave Decicco (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14651846#comment-14651846
 ] 

Dave Decicco commented on CASSANDRA-9659:
-

Thank you for confirming Benjamin.

You can close this ticket.  I will continue to follow CASSANDRA-9958 but 
realize there are some changes necessary in my application to accommodate this 
functionality.

Thank you for your help.

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: CqlProxyInvocationHandler sets PagingState AFTER 1st 
 company call for results.PNG, Multiple companyid IN clause with secondary 
 index failure.PNG, rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
 [apache-cassandra-2.1.3.jar:2.1.3]
 at java.lang.Thread.run(Unknown Source) [na:1.7.0_76]
 INFO  

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-07-20 Thread Dave Decicco (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14633961#comment-14633961
 ] 

Dave Decicco commented on CASSANDRA-9659:
-

Hi Benjamin,

I did a bit more digging today with version 2.1.3 and had some interesting 
findings I'm hoping you can corroborate or make sense of.
We are going to be testing if 2.1.5 fixes the problem but won't be at that 
point for a couple of days.

The issue appears to be with setting the PagingState property of the 
Cassandra.RowSet class in the DataStax 2.1.0 version of the C# driver.  In the 
particular queries I've outlined in previous emails, we have to make 2 separate 
queries, for different companyid values, and then combine the results for 
display on the UI.  The application though uses the PagingState result from the 
1st query when making the 2nd query, which causes the exception from what I can 
tell. (Highlighted text on line 63 of the CqlProxyInvocationHandler attachment) 
 The reason we have to make 2 queries is that the IN operation on the companyid 
column cannot be combined with the secondary index for the serialnumber column 
of the raw message table (see attachment Multiple companyid IN clause with 
secondary index failure for the CQL error message)  Instead of removing the 
serialnumber = 201203 clause from the query, we instead make 2 calls; one for 
the first companyid and another for the secondary companyid so we have a strict 
equality on the primary key column and can use the secondary index of 
serialnumber to filter the results.  Does this make sense that the PagingState 
is set incorrectly when making the 2nd database call and would cause the issue?

If the above is true, then I have a question about combining the output of 
multiple resultsets and the PagingState.  
If an application uses paging and the output of a single page is made of 
multiple Cassandra queries, how can the PagingState be actually set to retrieve 
the next set of results for the next page?  Would a page map of companyid and 
PagingState need to be maintained in the application for each page of results?

If this is not the appropriate forum for this question, please let me know.

Please let me know if you have any questions/comments.

Thanks,
 



 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: CqlProxyInvocationHandler sets PagingState AFTER 1st 
 company call for results.PNG, Multiple companyid IN clause with secondary 
 index failure.PNG, rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-07-14 Thread Benjamin Lerer (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14626390#comment-14626390
 ] 

Benjamin Lerer commented on CASSANDRA-9659:
---

Right now my problem is that I cannot reproduce your problem with 2.1.3.
 
If you know how to reproduce the problem you can test it with 2.1.5. 
Even if the problem is fixed in 2.1.5, I would be interested to know how to 
reproduce the problem just to add some extra tests to Cassandra 

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
 [apache-cassandra-2.1.3.jar:2.1.3]
 at java.lang.Thread.run(Unknown Source) [na:1.7.0_76]
 INFO  [BatchlogTasks:1] 2015-06-23 13:12:17,521 ColumnFamilyStore.java:877 - 
 Enqueuing flush of 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-07-14 Thread Dave Decicco (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14626382#comment-14626382
 ] 

Dave Decicco commented on CASSANDRA-9659:
-

What else is needed from me beyond the upgrade to 2.1.5 to see if the problem 
is resolved?

Thanks,

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
 [apache-cassandra-2.1.3.jar:2.1.3]
 at java.lang.Thread.run(Unknown Source) [na:1.7.0_76]
 INFO  [BatchlogTasks:1] 2015-06-23 13:12:17,521 ColumnFamilyStore.java:877 - 
 Enqueuing flush of batchlog: 27641 (0%) on-heap, 0 (0%) off-heap
 INFO  [MemtableFlushWriter:50154] 2015-06-23 13:12:17,522 Memtable.java:339 - 
 Writing Memtable-batchlog@297832842(22529 serialized bytes, 40 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-07-13 Thread Benjamin Lerer (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14624596#comment-14624596
 ] 

Benjamin Lerer commented on CASSANDRA-9659:
---

Thanks for the queries. Unfortunatly, I do not think that the problem come from 
any of them.

Based on the stack trace, it seems that the query could be an index query or a 
range query (partition key not fully specified or token query). The number of 
result returned should be greater than the page size.

The assertion is triggered during paging. The {{PagingState}} send by the 
client contains as last returned partition key a key which is outside the range 
requested by the query.

I really do not know how it is possible. 

[~dave.deci...@gmail.com] It would help if you were able to find the query 
causing the issue.

[~thobbs] you know paging better than me. Do you have any idea?

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-07-13 Thread Dave Decicco (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14624616#comment-14624616
 ] 

Dave Decicco commented on CASSANDRA-9659:
-

Hi Benjamin, thank you again for looking into this.

There was some discussion when I posted the offending queries on July 1st that 
they may not be the correct ones.
The queries which I posted were taken from the output of a breakpoint within 
our C# application from the DataStax C# Driver.
I will work with a DBA today to try and trace a query Cassandra itself.

I have been reading how to enable tracing at the Cassandra level by executing 
the TRACING ON command but have not been successful through DevCenter. Is 
there a better way to get the actual offending queries from Cassandra logs?

I may also have a chance to upgrade to Cassandra version 2.1.5 this week as our 
DBA is back and our test environment is freed up again.

Thanks,

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-07-13 Thread Benjamin Lerer (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14624741#comment-14624741
 ] 

Benjamin Lerer commented on CASSANDRA-9659:
---

{quote}I have been reading how to enable tracing at the Cassandra level by 
executing the TRACING ON command but have not been successful through 
DevCenter. Is there a better way to get the actual offending queries from 
Cassandra logs?{quote}

I do not think so. 

The query that triggered this assertion managed to get some results but failed 
while retrieving part of them.
The value of the last partition key returned was 
4b62deb2-bb43-4fad-a2c1-5c4a23c07592 and the one of the last key requested was 
db4e85ff-e258-4105-aa1a-4b09f559efcd.

Based on those values and on the queries that you provided me it seems that the 
query was performed on the rawmessage table.


 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: rawmessage column family.PNG, trackingdevice column 
 family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-07-01 Thread Dave Decicco (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14610898#comment-14610898
 ] 

Dave Decicco commented on CASSANDRA-9659:
-

Also, speaking with another developer, one of the following queries may have 
also generated the exception:

select *
from trackingdevice
where serialnumber = '201203'
and requesttime = '2015-03-23 18:06' and requesttime = '2015-03-30 18:06';

select *
from rawmessage
where companyid = 'db4e85ff-e258-4105-aa1a-4b09f559efcd'
and requesttime = '2015-03-23 18:06' and requesttime = '2015-03-30 18:06'

I have attached the column family definition for the tracking device column 
family.

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x

 Attachments: rawmessage column family.PNG


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
 [apache-cassandra-2.1.3.jar:2.1.3]
  

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-07-01 Thread Dave Decicco (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14610881#comment-14610881
 ] 

Dave Decicco commented on CASSANDRA-9659:
-

Hi Benjamin,

The query is the following:

select *
from rawmessage
where companyid 
in('xata','db4e85ff-e258-4105-aa1a-4b09f559efcd','4b62deb2-bb43-4fad-a2c1-5c4a23c07592')
and requesttime = '2015-04-01' and requesttime = '2015-04-15';

I'm not able to reproduce in DevCenter (version 1.2.0).

Thanks,

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
 [apache-cassandra-2.1.3.jar:2.1.3]
 at java.lang.Thread.run(Unknown Source) [na:1.7.0_76]
 INFO  [BatchlogTasks:1] 2015-06-23 13:12:17,521 ColumnFamilyStore.java:877 - 
 Enqueuing flush of batchlog: 27641 (0%) on-heap, 0 (0%) off-heap
 INFO  

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-06-30 Thread Benjamin Lerer (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14608892#comment-14608892
 ] 

Benjamin Lerer commented on CASSANDRA-9659:
---

[~dave.deci...@gmail.com] This error has been clearly triggered by a {{SELECT}} 
query.

If you could provide me the query and the table schema it would really help.



 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Assignee: Benjamin Lerer
 Fix For: 2.1.x


 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
 [apache-cassandra-2.1.3.jar:2.1.3]
 at java.lang.Thread.run(Unknown Source) [na:1.7.0_76]
 INFO  [BatchlogTasks:1] 2015-06-23 13:12:17,521 ColumnFamilyStore.java:877 - 
 Enqueuing flush of batchlog: 27641 (0%) on-heap, 0 (0%) off-heap
 INFO  [MemtableFlushWriter:50154] 2015-06-23 13:12:17,522 Memtable.java:339 - 
 Writing Memtable-batchlog@297832842(22529 serialized bytes, 40 ops, 0%/0% of 
 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-06-29 Thread Philip Thompson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14605835#comment-14605835
 ] 

Philip Thompson commented on CASSANDRA-9659:


[~JoshuaMcKenzie], does this look like a duplicate of CASSANDRA-8949 to you?

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Priority: Critical

 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
 [apache-cassandra-2.1.3.jar:2.1.3]
 at java.lang.Thread.run(Unknown Source) [na:1.7.0_76]
 INFO  [BatchlogTasks:1] 2015-06-23 13:12:17,521 ColumnFamilyStore.java:877 - 
 Enqueuing flush of batchlog: 27641 (0%) on-heap, 0 (0%) off-heap
 INFO  [MemtableFlushWriter:50154] 2015-06-23 13:12:17,522 Memtable.java:339 - 
 Writing Memtable-batchlog@297832842(22529 serialized bytes, 40 ops, 0%/0% of 
 on/off-heap limit)
 INFO  [MemtableFlushWriter:50154] 2015-06-23 13:12:17,523 Memtable.java:385 - 
 Completed flushing; nothing 

[jira] [Commented] (CASSANDRA-9659) ServerErrorException: java.lang.AssertionError

2015-06-29 Thread Joshua McKenzie (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14605872#comment-14605872
 ] 

Joshua McKenzie commented on CASSANDRA-9659:


Don't think so - 8949 would have been a silent drop if someone misused the API 
internally. This looks like an incorrect bound being created during a select 
statement creation as it's failing on the assertion in the constructor:
{noformat}
public Bounds(T left, T right, IPartitioner partitioner)
{
super(left, right, partitioner);
// unlike a Range, a Bounds may not wrap
assert left.compareTo(right) = 0 || right.isMinimum(partitioner) : [ 
+ left + , + right + ];
}
{noformat}

 ServerErrorException: java.lang.AssertionError
 --

 Key: CASSANDRA-9659
 URL: https://issues.apache.org/jira/browse/CASSANDRA-9659
 Project: Cassandra
  Issue Type: Bug
 Environment: CentOS 6.5
 Cassandra 2.1.3
Reporter: Dave Decicco
Priority: Critical

 An issue exists where a java.lang.AssertionError occurs for a select number 
 of read queries from Cassandra within our application.
 It was suggested that a ticket be created to see if the error below is the 
 same as CASSANDRA-8949 which was fixed in version 2.1.5.
 Here is a portion of the Cassandra log file where the exception occurs:
 {code}
 INFO  [MemtableFlushWriter:50153] 2015-06-23 13:11:17,517 Memtable.java:385 - 
 Completed flushing; nothing needed to be retained.  Commitlog position was 
 ReplayPosition(segmentId=1425054853780, position=8886361)
 ERROR [SharedPool-Worker-1] 2015-06-23 13:11:29,047 Message.java:538 - 
 Unexpected exception during request; channel = [id: 0x8f1ca59e, 
 /10.30.43.68:33717 = /10.30.43.146:9042]javaa.lang.AssertionError: 
 [DecoratedKey(5747358200379796162, 
 6462346538352d653235382d343130352d616131612d346230396635353965666364),DecoratedKey(3303996443194009861,
  34623632646562322d626234332d346661642d613263312d356334613233633037353932)]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:41) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.dht.Bounds.init(Bounds.java:34) 
 ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.makeIncludingKeyBounds(RangeSliceQueryPager.java:123)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.queryNextPage(RangeSliceQueryPager.java:74)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:87)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.service.pager.RangeSliceQueryPager.fetchPage(RangeSliceQueryPager.java:37)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:219)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:62)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:134)
  ~[apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at 
 org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
  [apache-cassandra-2.1.3.jar:2.1.3]
 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(Unknown 
 Source) [na:1.7.0_76]
 at 
 org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
  [apache-cassandra-2.1.3.jar:2.1.3]
 at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
 [apache-cassandra-2.1.3.jar:2.1.3]
 at java.lang.Thread.run(Unknown Source)