Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Jonathan Ellis
2009/8/19 Teodor Sigaev teo...@sigaev.ru: It produces following error messages $VAR1 = 'Can\'t use string (0) as a SCALAR ref while strict refs in use at /usr/lib/perl5/site_perl/5.8.8/Thrift/BinaryProtocol.pm line 376.' If it's objecting to the 0 in reversed=0, it sounds like a perl specific

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Jonathan Ellis
2009/8/19 Teodor Sigaev teo...@sigaev.ru: If it's objecting to the 0 in reversed=0, it sounds like a perl specific problem -- why would it be turning that into a string? It seems to me that it isn't connected to reversed. I changed to 1 and nothing was changed. Dunno, then. Bug in the

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Evan Weaver
In the Ruby Thrift it expects a boolean, FYI. Maybe the 0 is false Perlism is shortcircuited? 2009/8/19 Teodor Sigaev teo...@sigaev.ru: If it's objecting to the 0 in reversed=0, it sounds like a perl specific problem -- why would it be turning that into a string? It seems to me that it isn't

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Teodor Sigaev
Dunno, then. Bug in the generated perl code? Wouldn't be the first time. Interesting, if column_names is added with known status ids then Cassandra returns them although it doesn't take into account reversed and count options. $result = $client-get_slice(

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Jonathan Ellis
2009/8/19 Teodor Sigaev teo...@sigaev.ru: Dunno, then.  Bug in the generated perl code?  Wouldn't be the first time. Interesting, if column_names is added with known status ids then Cassandra returns them although it doesn't take into account reversed and count options. it's not supposed to.

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Michael Greene
start and finish in SliceRange are non-optional. Try empty strings. 2009/8/19 Teodor Sigaev teo...@sigaev.ru: Some more news, I added printing of stack trace to perl's client, and I see that problem is in getting answer from server, not in sending. It breaks on reading of exception

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Teodor Sigaev
start and finish in SliceRange are non-optional. Try empty strings. This is a partial fix :) - it works and doesn't emit any exception but returns nothing. -- Teodor Sigaev E-mail: teo...@sigaev.ru WWW:

Re: Anybody experience one Cassandra server locking up?

2009-08-19 Thread Jonathan Ellis
sounds like you are exhausting the memory on that instance and it is going into GC swap trying to free enough to continue. this is very easy to do on 0.3 -- try upgrading to the 0.4 beta if you are using 0.3. On Tue, Aug 18, 2009 at 3:36 PM, Brian Frank Coopercoop...@yahoo-inc.com wrote: Hi

Re: Anybody experience one Cassandra server locking up?

2009-08-19 Thread Sandeep Tata
Brian, Are you guys planning to run workloads at Yahoo to compare Cassandra and PNUTS? We'd be curious to see what you learn with the 0.4/trunk code. Sandeep On Wed, Aug 19, 2009 at 10:20 AM, Brian Frank Coopercoop...@yahoo-inc.com wrote: Probably you are right; after Jun's response I looked

Re: quorum read timeout

2009-08-19 Thread Jonathan Ellis
Is this 0.3 or 0.4/trunk? On Wed, Aug 19, 2009 at 2:36 PM, Phillip Michalakphil.micha...@digitalreasoning.com wrote: I'm running three Cassandra nodes in virtual machines. During a 'get' operation from Cassandra-remote directed at one of these nodes, I'm receiving the following output

Re: quorum read timeout

2009-08-19 Thread Phillip Michalak
It's cassandra-0.4-beta1. Thanks! Phil On Aug 19, 2009, at 4:43 PM, Jonathan Ellis wrote: Is this 0.3 or 0.4/trunk? On Wed, Aug 19, 2009 at 2:36 PM, Phillip Michalakphil.micha...@digitalreasoning.com wrote: I'm running three Cassandra nodes in virtual machines. During a 'get' operation from

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Drew Schleck
Try setting start to and end to ~. This is what I did to fix Lazyboy and it seems to work alright for now. 2009/8/19 Teodor Sigaev teo...@sigaev.ru: start and finish in SliceRange are non-optional. Try empty strings. This is a partial fix :) - it works and doesn't emit any exception but

Re: quorum read timeout

2009-08-19 Thread Jonathan Ellis
Looks like a bug in TcpConnectionManager. Can you file a ticket? thanks, -Jonathan On Wed, Aug 19, 2009 at 2:49 PM, Phillip Michalakphil.micha...@digitalreasoning.com wrote: It's cassandra-0.4-beta1. Thanks! Phil On Aug 19, 2009, at 4:43 PM, Jonathan Ellis wrote: Is this 0.3 or

Re: quorum read timeout

2009-08-19 Thread Phillip Michalak
Sure thing. Filed as https://issues.apache.org/jira/browse/CASSANDRA-381 Thanks, Phil On Aug 19, 2009, at 4:54 PM, Jonathan Ellis wrote: Looks like a bug in TcpConnectionManager. Can you file a ticket? thanks, -Jonathan On Wed, Aug 19, 2009 at 2:49 PM, Phillip

Re: quorum read timeout

2009-08-19 Thread Jun Rao
The following line from the log likely shows the problem. It looks like that a datanode is somehow null, which shouldn't happen. columnParent='QueryPath(columnFamilyName='strings', superColumnName='null', columnName='null')', columns=[id,]) from 38...@null Jun IBM Almaden

Re: Cassandra performance

2009-08-19 Thread Jonathan Ellis
be careful when profiling blocking io -- I bet that means that I'm spending all my time blocking for more data to read since there is only one call per second. the internal Cassandra MessagingService uses nonblocking io, but the Thrift stuff is just your standard thread pool with blocking

Re: Cassandra performance

2009-08-19 Thread Michael Greene
What Jonathan said. Also, if you have the ability to switch your profiler between wall mode and CPU mode, I would recommend it to give you a better overall picture of what is going on. If your profiler can switch between 'sampling' and 'tracing' modes that would also be useful. I'm not sure if

RE: Anybody experience one Cassandra server locking up?

2009-08-19 Thread Brian Frank Cooper
Thanks for the detailed response. It is really helpful to understand what is going on behind the covers. We are using RandomPartitioner. However, I have noticed that some of the boxes have significantly more data (in /var/cassandra/data and /var/cassandra/commitlog) than others (like 30 X

Re: Server cannot startup after shutdown

2009-08-19 Thread Jonathan Ellis
The malformed input bug was fixed after beta1 and should be in a nightly build by now. (I introduced a regression where it couldn't handle the last entry in the commitlog being incomplete. So upgrading should be able to restart on the existing commitlogs.) The OOM puzzles me a little; I'm not

RE: Server cannot startup after shutdown

2009-08-19 Thread Brian Frank Cooper
Thanks for the reply. I'll try playing with the memory settings. brian From: Jonathan Ellis [jbel...@gmail.com] Sent: Wednesday, August 19, 2009 7:46 PM To: cassandra-user@incubator.apache.org Subject: Re: Server cannot startup after shutdown The