Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 26769 invoked from network); 17 Nov 2009 07:30:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 07:30:03 -0000 Received: (qmail 50248 invoked by uid 500); 17 Nov 2009 07:30:03 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 50241 invoked by uid 500); 17 Nov 2009 07:30:02 -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 50231 invoked by uid 99); 17 Nov 2009 07:30:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 07:30:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Tue, 17 Nov 2009 07:30:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 976C2234C045 for ; Mon, 16 Nov 2009 23:29:39 -0800 (PST) Message-ID: <1214888596.1258442979605.JavaMail.jira@brutus> Date: Tue, 17 Nov 2009 07:29:39 +0000 (UTC) From: "Stu Hood (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-193) Proactive repair In-Reply-To: <761101744.1242935325628.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778749#action_12778749 ] Stu Hood commented on CASSANDRA-193: ------------------------------------ > 1. To get us started, can we trigger a Merkle tree repair manually from nodeprobe. I got most of this working tonight: the code needed some serious cleanup in order to not duplicate effort or send trees back and forth in an infinite loop. > 4. The code needs to be better documented. Next patch should be improved in this area. > 5. You need to name variables and methods better. For example... These were particularly bad... you're right. I've changed them. > 6. In MerkleTree.difference(), shouldn't you add a case that returns an empty diff when the trees are consistent? Good catch. I'll wrap up a new version of this patch on Tuesday before COB, I promise. > Proactive repair > ---------------- > > Key: CASSANDRA-193 > URL: https://issues.apache.org/jira/browse/CASSANDRA-193 > Project: Cassandra > Issue Type: New Feature > Components: Core > Reporter: Jonathan Ellis > Assignee: Stu Hood > Fix For: 0.5 > > Attachments: 193-1-tree-preparation.diff, 193-2-tree.diff, 193-3-aes-preparation.diff, 193-4-aes.diff, mktree-and-binary-tree.png > > > Currently cassandra supports "read repair," i.e., lazy repair when a read is done. This is better than nothing but is not sufficient for some cases (e.g. catastrophic node failure where you need to rebuild all of a node's data on a new machine). > Dynamo uses merkle trees here. This is harder for Cassandra given the CF data model but I suppose we could just hash the serialized CF value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.