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

2016-05-18 Thread Renjie Liu
BTW, is there any article explaining the process? I think this will help us understand it better. On Thu, May 19, 2016 at 11:28 AM Renjie Liu wrote: > Thanks, I'll read the code. > > On Thu, May 19, 2016 at 11:02 AM Jeff Jirsa > wrote: > >> >> https://github.com/apache/cassandra/blob/trunk/src/

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

2016-05-18 Thread Renjie Liu
Thanks, I'll read the code. On Thu, May 19, 2016 at 11:02 AM Jeff Jirsa wrote: > > https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/locator/TokenMetadata.java#L731-L754 > > > And > > > https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/locato

Error running 'ant test'

2016-05-18 Thread Mahdi Mohammadi
I am trying to run `ant test` on cassandra-3.0 branch but get some errors: *[junit] Testcase: testSamplerSingleInsertionsEqualMulti(org.apache.cassandra.utils.TopKSamplerTest): FAILED* *[junit] expected:<{item2=2, item1=1, item8=8, item7=7, item9=9, item4=4, item10=10, item3=3, item6=6,

Re: Error running tests: java.security.InvalidKeyException: Illegal key size

2016-05-18 Thread Mahdi Mohammadi
Thanks. That error is fixed but I still get other test failures. Will send a separate email. Best Regards On Wed, May 18, 2016 at 5:18 PM, Mike Adamson wrote: > Do you have the JCE unlimited strength policy files installed in you JDK? > > > http://www.oracle.com/technetwork/java/javase/download

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

2016-05-18 Thread Jeff Jirsa
https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/locator/TokenMetadata.java#L731-L754 And https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/locator/TokenMetadata.java#L60-L88 Cassandra keeps a map of joining and leaving nodes, and does e

How cassandra ensures consistency when adding or removing a node?

2016-05-18 Thread Renjie Liu
Hi, cassandra devs: I'm learning cassandra and I can understand most of the techniques used. But I can't understand how cassandra ensures consistency when adding/removing a node? It seems that when a node joins the dht ring, some node need to transferring data to the new node using streaming. But t

Re: Error running tests: java.security.InvalidKeyException: Illegal key size

2016-05-18 Thread Mike Adamson
Do you have the JCE unlimited strength policy files installed in you JDK? http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html On Tue, 17 May 2016 at 22:58 Mahdi Mohammadi wrote: > I can successfully compile cassandra source using `ant` command but when > running `