Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 3955 invoked from network); 15 Mar 2011 00:01:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Mar 2011 00:01:51 -0000 Received: (qmail 97751 invoked by uid 500); 15 Mar 2011 00:01:51 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 97713 invoked by uid 500); 15 Mar 2011 00:01:51 -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 97705 invoked by uid 99); 15 Mar 2011 00:01:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 00:01:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 00:01:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9D0533A9542 for ; Tue, 15 Mar 2011 00:01:29 +0000 (UTC) Date: Tue, 15 Mar 2011 00:01:29 +0000 (UTC) From: "Jon Hermes (JIRA)" To: commits@cassandra.apache.org Message-ID: <1905192436.2477.1300147289639.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <26218654.209921290207135197.JavaMail.jira@thor> Subject: [jira] Updated: (CASSANDRA-1761) Indexes: Auto-generating the CFname may collide with user-generated names 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-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jon Hermes updated CASSANDRA-1761: ---------------------------------- Attachment: 1761.txt > Indexes: Auto-generating the CFname may collide with user-generated names > ------------------------------------------------------------------------- > > Key: CASSANDRA-1761 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1761 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.7 beta 3 > Reporter: Jon Hermes > Assignee: Jon Hermes > Priority: Minor > Fix For: 0.7.5 > > Attachments: 1761.txt > > Original Estimate: 16h > Remaining Estimate: 16h > > {noformat}column_families: > - name: CF > comparator: BytesType > column_metadata: > - name: foo > index_name: 626172 > index_type: KEYS > - name: bar > index_type: KEYS{noformat} > Auto-generated versus user-supplied names collide in the YAML above. The code: > {code}cfname = parentCf + "." + (info.getIndexName() == null ? FBUtilities.bytesToHex(info.name) : info.getIndexName()){code} > From the first ColumnDefinition, we create cfname = "CF.626172" (from the fail clause of the ternany, user-supplied name) > From the second ColumnDefinition, we create cfname = "CF.626172" (from the pass clause of the ternary, we generate the name) > They're in hex form. This is possible, but fairly unlikely that someone will do this. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira