Collections in native protocol

2012-09-30 Thread Jonathan Rudenberg
I'm working on a native protocol client, and I can't find documentation on what format collection values should be sent as in an EXECUTE request. I found CASSANDRA-4453, but this only seems to specify the response format. Any pointers would be appreciated. Thanks, Jonathan

Re: Collections in native protocol

2012-09-30 Thread Sylvain Lebresne
On Sun, Sep 30, 2012 at 6:02 PM, Jonathan Rudenberg wrote: > I found CASSANDRA-4453, but this only seems to specify the response format. It's the same format for EXECUTE. > Any pointers would be appreciated. I'm afraid there isn't much more than the source at this point but I'll try to add some

Re: Collections in native protocol

2012-09-30 Thread Jonathan Rudenberg
I'm putting a collection onto the wire in an EXECUTE request with exactly the same bytes that were received and I get: "Can't apply operation on column with org.apache.cassandra.db.marshal.SetType(org.apache.cassandra.db.marshal.UTF8Type) type" Here's the full trace log from cassandra: DEBUG

Re: Prevent queries from OOM nodes

2012-09-30 Thread aaron morton
> CQL will read everything into List to make latter a count. From 1.0 onwards count paginated reading the columns. What version are you on ? https://issues.apache.org/jira/browse/CASSANDRA-2894 Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.co

Re: Truncate causing subsequent timeout on KeyIterator?

2012-09-30 Thread aaron morton
Nothing jumps out. Turn the cassandra logging up to DEBUG and take a look at the cassandra logs. Your read will be logged in a [ReadStage-*] thread. Hope that helps. - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 27/09/2012, at 6:13 AM, Cona

Re:

2012-09-30 Thread aaron morton
> I still don't see it in jconsole. It's part of the CF definition. Check the docs for CLI or CQL which ever you are using. > how long would you expect to cost to read a column family of 15 rows if > it fits into row cache entirely? It takes me around 7s now Assuming you are talking about

Re: cassandra key cache question

2012-09-30 Thread aaron morton
I had a quick look at the code (1.1X) and could not see a facility to purge dropped cf's from key or row caches. Could you create a ticket on https://issues.apache.org/jira/browse/CASSANDRA ? Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com O

Re:

2012-09-30 Thread Manu Zhang
Sorry, the line "I still don't see it in jconsole" is ambiguous. I mean that I don't find a change of rowcache size in jconsole and neither performance gain. cfstats gives either 0 or NaN. On Mon, Oct 1, 2012 at 8:17 AM, aaron morton wrote: > I still don't see it in jconsole. > > It's part of the

Re: any ideas on what these mean

2012-09-30 Thread aaron morton
> ERROR [MigrationStage:1] 2012-09-26 09:51:03,128 AbstractCassandraDaemon.java > (line 134) Exception in thread Thread[MigrationStage:1,5,main] I *think* this is due to concurrent schema modifications. The found number is the one in the database for the matching KS / CF name, the second number

Re: Collections in native protocol

2012-09-30 Thread Sylvain Lebresne
Ok, I'll look what's wrong. -- Sylvain On Mon, Oct 1, 2012 at 1:27 AM, Jonathan Rudenberg wrote: > I'm putting a collection onto the wire in an EXECUTE request with exactly the > same bytes that were received and I get: > > "Can't apply operation on column with > org.apache.cassandra.db.marsha