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

2016-05-19 Thread Renjie Liu
ill be > eventually fixed with a repair (answering your question, there will be no > data lost during this process). > > (I tried to provide information according to my best knowledge, although if > anyone sees something wrong, please indicate accordingly) > > [1] https://dzone.com/

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

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

2016-05-18 Thread Renjie Liu
src/java/org/apache/cassandra/locator/TokenMetadata.java#L60-L88 > > > > Cassandra keeps a map of joining and leaving nodes, and does extra writes > to the appropriate nodes for mutations created after the streaming is > calculated. > > > > On 5/18/16, 7:33 PM, "Renjie

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