Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 82764 invoked from network); 19 Dec 2009 00:15:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Dec 2009 00:15:41 -0000 Received: (qmail 87403 invoked by uid 500); 19 Dec 2009 00:15:41 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 87299 invoked by uid 500); 19 Dec 2009 00:15:40 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 87278 invoked by uid 99); 19 Dec 2009 00:15:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Dec 2009 00:15:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Dec 2009 00:15:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 53F2B234C1E9 for ; Fri, 18 Dec 2009 16:15:18 -0800 (PST) Message-ID: <704103136.1261181718342.JavaMail.jira@brutus> Date: Sat, 19 Dec 2009 00:15:18 +0000 (UTC) From: "Jaakko Laine (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-572) handle old gossip properly In-Reply-To: <1518344233.1258968159585.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792714#action_12792714 ] Jaakko Laine commented on CASSANDRA-572: ---------------------------------------- Sorry about the delay. I did this part again yesterday (somewhat different now after #603), but had insufficient time to test it properly. The patch would seem OK, so as soon as I have tested it a bit more, I'll submit it. The problem earlier was how to handle state jump to 'leaving'. Now that pending ranges is calculated every time and we know what direction a node was going last time, this is not a problem anymore. You can expect a patch soon. > handle old gossip properly > -------------------------- > > Key: CASSANDRA-572 > URL: https://issues.apache.org/jira/browse/CASSANDRA-572 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.5 > Reporter: Jaakko Laine > Fix For: 0.5 > > Attachments: 572-handle-old-gossip.patch, use-same-APstate-for-all-node-state-gossip.patch > > > (1) If a node has been moving in the ring, further bootstraps by other nodes will cause errors as they are handling STATE_LEAVING gossip without having such member in token metadata. > (2) When a node bootstraps, it handles all ep states in the order they happen to arrive. If the first one to arrive has moved in the past (that is, it has STATE_LEAVING in its ep state), getNaturalEndpoint will throw ArrayIndexOutOfBounds exception as sortedTokens.size() == 0. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.