Re: Exception about too long clustering key

2016-03-10 Thread Jack Krupansky
The offending code (limit check and exception with that message) went away with the merge of the so-called "Storage engine refactor, a.k.a CASSANDRA-8099" changes from September 1, 2014 that got merged on June 30, 2015. Github doesn't seem to have a way to search old versions of the repo. Interesti

Re: Exception about too long clustering key

2016-03-10 Thread Emīls Šolmanis
Jack Yeah, I tracked it down to https://github.com/apache/cassandra/blob/cassandra-2.2.4/src/java/org/apache/cassandra/cql3/QueryProcessor.java#L213 But it's actually to do with how the cell names are being constructed for collections somehow. The offender was a set, but I solved it by backtrack

Re: Exception about too long clustering key

2016-03-10 Thread Jack Krupansky
Did you ever find the source of the message? I couldn't find it in github either, either in the driver or Cassandra proper. -- Jack Krupansky On Thu, Mar 10, 2016 at 12:39 PM, Emīls Šolmanis wrote: > In case someone stumbles upon this same thing later. > > Ended up being a collection item that

Re: Exception about too long clustering key

2016-03-10 Thread Emīls Šolmanis
In case someone stumbles upon this same thing later. Ended up being a collection item that was too big (i.e., larger than 64K). Something to do with the way Cassandra generates the keys for collections, but moving the offending collection from a list to a separate clustering key solved this partic

Re: Exception about too long clustering key

2016-03-09 Thread Emīls Šolmanis
Hey Alex, I did do a grep for that message in the driver code base and it seems like it's not there, so I think this is coming from the server. Only thing I can think of is us exceeding one of the limits (e.g., the 65K collection item one) and then the error message being super misleading. I'll c

Re: Exception about too long clustering key

2016-03-09 Thread Alex Popescu
Hi Emīls, Directing this question to the Java driver mailing list will give you better chances to get an answer: https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driver-user (as a side note, I haven't seen this one before) On Wed, Mar 9, 2016 at 11:52 AM, Emīls Šolmanis wrote:

Exception about too long clustering key

2016-03-09 Thread Emīls Šolmanis
Hello, I keep getting an exception about a clustering key being too long, like com.datastax.driver.core.exceptions.InvalidQueryException: The sum of all clustering columns is too long (72650 > 65535) at com.datastax.driver.core.Responses$Error.asException(Responses.java:136) at