Re: How to debug a unit test?

2016-05-19 Thread Oleksandr Petrov
I'm not entirely sure how to debug in terminal. But you can set break points and debug in eclipse and IntelliJ without a problem. I strongly recommend reading the contributing guide: https://wiki.apache.org/cassandra/HowToContribute On Fri, 20 May 2016 at 03:18, Mahdi Mohammadi wrote: > Hi, > >

How to debug a unit test?

2016-05-19 Thread Mahdi Mohammadi
Hi, I can run a single unit test using `ant test -Dtest.name=TraceCqlTest`. How can I debug the test using gdb (in the terminal)? Best Regards

Re: Error running 'ant test'

2016-05-19 Thread Oleksandr Petrov
It passes for me, and seems to work on the CI. Rule of thumb for me personally is: * make sure that everything cleaned up (no c* instances running, no tests running at same time) * make sure the latest version is pulled * in case something failed, try running more than once If it constantly

Re: Error running 'ant test'

2016-05-19 Thread Jonathan Ellis
Also, sometimes fragile tests are sensitive to the order in which they are run. If it passes on CI but not locally that may be what's going on. You can try running just the failed class (easy in ant) or test (hard in ant, easy in intellij/eclipse) in isolation and see if that makes a difference.

Re: Error running 'ant test'

2016-05-19 Thread Sam Tunnicliffe
CassandraIndexTest is intermittently failing on trunk & 3.0 at the moment: http://cassci.datastax.com/view/trunk/job/trunk_utest/1378/testReport/ http://cassci.datastax.com/view/cassandra-3.0/job/cassandra-3.0_utest/747/testReport/ On Thu, May 19, 2016 at 3:24 PM, Oleksandr Petrov < oleksandr.pet

Re: Error running 'ant test'

2016-05-19 Thread Mahdi Mohammadi
I ran your command and test is successful but still there are tests which are failing and I am confused. My Java version is 1.8.0_74 and OS is 64 bit Debian (Vagrant box). When I run: *ant clean && ant test -Dtest.name=CassandraIndexTest *(both on trunk and cassandra-3.0), I get error: * [juni

Re: How cassandra ensures consistency when adding or removing a node?

2016-05-19 Thread Renjie Liu
Thanks, Alex. On Thu, May 19, 2016 at 3:44 PM Oleksandr Petrov wrote: > I think that this article [1] covers most of the concepts (see key > concepts) quite well. > I am not aware of any article that explains the whole process, though. > > Briefly, there are several processes/concepts that are s

Re: How cassandra ensures consistency when adding or removing a node?

2016-05-19 Thread Oleksandr Petrov
I think that this article [1] covers most of the concepts (see key concepts) quite well. I am not aware of any article that explains the whole process, though. Briefly, there are several processes/concepts that are somewhat related to that subject: token ownership, replica, coordinator and gossip.

Re: Error running 'ant test'

2016-05-19 Thread Oleksandr Petrov
I just tried it locally, `ant clean && ant test -Dtest.name=TopKSamplerTest` works just fine (tried the other test, too). What's your JDK version? I can't see anything obvious that is wrong. If the branch is up-to-date, it usually has to build. On Thu, May 19, 2016 at 5:12 AM Mahdi Mohammadi wro