S Kr
S Kr

Reputation: 1840

InvalidRequestException(why:Too many bytes for comparator) in astyanax 1.56.37

Refer InvalidRequestException(why:Too many bytes for comparator) on execute query to composite columns using Asytanax

I am getting the exact issue using astyanax 1.56.37 and cassandra 1.2.5

I don't see the fix of https://issues.apache.org/jira/browse/CASSANDRA-4377 working. Double check : Is this fix present in 1.2.5?

Upvotes: 0

Views: 246

Answers (1)

Lyuben Todorov
Lyuben Todorov

Reputation: 14163

InvalidRequestException means there is a mismatch between the composite you are using in Astyanax and the way that you've created your CQL table.

Quite often this means that you are supplying too many fields for your primary key. With Astyanax you also have to set the CQL version to CQL3 when you are creating your keyspace context.

If you read the details of the JIRA issue you posted, it states that it has been resolved. So yes, this fix is in since the 1.2.0 beta version, so it will be there in 1.2.5 too.

Upvotes: 1

Related Questions