Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 18555 invoked from network); 4 Jun 2010 16:03:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 16:03:18 -0000 Received: (qmail 89074 invoked by uid 500); 4 Jun 2010 16:03:18 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 89054 invoked by uid 500); 4 Jun 2010 16:03:18 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 89046 invoked by uid 99); 4 Jun 2010 16:03:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 16:03:18 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 16:03:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o54G2shC014163 for ; Fri, 4 Jun 2010 16:02:54 GMT Message-ID: <29336639.184161275667374635.JavaMail.jira@thor> Date: Fri, 4 Jun 2010 12:02:54 -0400 (EDT) From: "Brandon Williams (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Issue Comment Edited: (CASSANDRA-1142) redesign hinted handoff schema In-Reply-To: <30414339.53941275066165218.JavaMail.jira@thor> 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-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875632#action_12875632 ] Brandon Williams edited comment on CASSANDRA-1142 at 6/4/10 12:01 PM: ---------------------------------------------------------------------- Patch to change schema as described. It's possible that a hint will be kept forever with CASSANDRA-1118, but that's easier to address after this patch. was (Author: brandon.williams): Patch to change schema as described. A thought, though: perhaps we should either store the token instead of ep, or use a lower value than Integer.MAX_VALUE for gcBefore, since with CASSANDRA-1118 it seems like a hint could be stored for a very long time. > redesign hinted handoff schema > ------------------------------ > > Key: CASSANDRA-1142 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1142 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Jonathan Ellis > Assignee: Brandon Williams > Fix For: 0.7 > > Attachments: 1142.txt > > > Currently, the HH schema looks like this: > * For each table (keyspace), there is a row in the system hints CF. > * SuperColumns in that row are keys for which we have hinted data. > * Subcolumns names within that supercolumn are host IPs. Subcolumn values are always empty. > * Instead, we store the row data "normally" in the application table it belongs in. > This has the drawback that we need to scan the entire hints data set to deliver hints to a given endpoint. I propose instead we do this: > * Row keys are endpoints for which we have hints. > * SuperColumns in that row are keys for which we have hinted data. > * Subcolumns names within that supercolumn are Keyspace + CF names, joined with a '-' (which is an illegal character in CF names, so it's safe to use here) > This makes looking up hints for a single endpoint efficient, as well as making it so we only have to read data from CFs for which we actually have data for the key. > Actual row data continues to be stored in application tables. > Makes sense to do this after CASSANDRA-1141. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.