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

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

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: > >>

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 > > >

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