nose tests -- run recently?

2010-02-08 Thread Jack Culpepper
Hi folks, I have a test for this get_range_slice() weirdness that I'd like to integrate into the nose tests in tests/system Is this stuff run regularly? ant test works great for me, but does not run the nosetests. When I run nosetests from the cassandra dir, I get this: $ nosetests E

Re: nose tests -- run recently?

2010-02-08 Thread Jonathan Ellis
On Mon, Feb 8, 2010 at 3:17 AM, Jack Culpepper jackculpep...@gmail.com wrote: Ok. Fixed that, but then run nosetests and I get a bunch of other errors.. I must be doing something wrong. I just checked out the code like 20 mins ago. I'm going to have to agree with your diagnosis -- everything

Re: nose tests -- run recently?

2010-02-08 Thread Jack Culpepper
On Mon, Feb 8, 2010 at 12:38 PM, Jonathan Ellis jbel...@gmail.com wrote: On Mon, Feb 8, 2010 at 2:25 PM, Jack Culpepper jackculpep...@gmail.com wrote: Are you running on a platform that doesn't care about capitalization? Yes.  If you're building Thrift on windows you're only the second

Re: nose tests -- run recently?

2010-02-08 Thread Jonathan Ellis
On Mon, Feb 8, 2010 at 3:02 PM, Jack Culpepper jackculpep...@gmail.com wrote: On Mon, Feb 8, 2010 at 12:38 PM, Jonathan Ellis jbel...@gmail.com wrote: On Mon, Feb 8, 2010 at 2:25 PM, Jack Culpepper jackculpep...@gmail.com wrote: Are you running on a platform that doesn't care about

Re: nose tests -- run recently?

2010-02-08 Thread Jack Culpepper
Ok. Thanks very much for all your help! Linux VM + NTFS? Good lord. :) It occurs to me that this could be a python 2.6 problem. Can you run python --version? Here's mine: $ python --version Python 2.6.4 -x helps, as now I can see the full variety of errors! :) Sometimes I get through 4-5 tests

get_range_slice() tester

2010-02-08 Thread Jack Culpepper
Here's a tester program, for contrib. It generates 10 keys using uuid, inserts them both into the cassandra column family Keyspace1/Super1 and a python dictionary. Then, it does a range scan using both methods and marks the keys that are returned. Finally, it goes through the python dictionary,

Re: nose tests -- run recently?

2010-02-08 Thread Jonathan Ellis
On Mon, Feb 8, 2010 at 3:53 PM, Jack Culpepper jackculpep...@gmail.com wrote: $ python --version Python 2.6.4 2.6.4 here, too. One more stupid question if you can stand it: when I get Connection reset by peer on the python side, where should I see the corresponding error on the java side?

Re: get_range_slice() tester

2010-02-08 Thread Jack Culpepper
On Mon, Feb 8, 2010 at 2:34 PM, Jonathan Ellis jbel...@gmail.com wrote: This is supposed to pass on a single node but fail on two, correct? Yep! At least, it does for me. What are the tokens on your two nodes, in case that is relevant? (nodeprobe ring will tell you.) Heh, unfortunately this

Re: get_range_slice() tester

2010-02-08 Thread Jonathan Ellis
I'm seeing failures on 0.5 but success against trunk, is that also what you see? -Jonathan On Mon, Feb 8, 2010 at 4:42 PM, Jack Culpepper jackculpep...@gmail.com wrote: On Mon, Feb 8, 2010 at 2:34 PM, Jonathan Ellis jbel...@gmail.com wrote: This is supposed to pass on a single node but fail on

Re: get_range_slice() tester

2010-02-08 Thread Jack Culpepper
No, dang. Obviously, get_key_range() is gone, but I get an exception for get_range_slice(): ERROR 23:25:04,497 Internal error processing get_range_slice java.lang.AssertionError at org.apache.cassandra.dht.Bounds.init(Bounds.java:16) at

RE: loadbalance and different strategies

2010-02-08 Thread Stu Hood
it will take half of G's range. Problem is, it will take half of G's _primary_ range, but most of G's load comes from _replicas_. From looking at the code recently, it chooses a token that splits G's load by actually sampling the data stored on G, which should make the primary vs replica